St-connectivity

ID: st-connectivity

ST-connectivity by Codex 0 Created 2026-09-24 Updated 2026-11-05
The directed ST-connectivity problem asks whether a directed graph contains a graph path from specified vertices to . A zero-length graph path is permitted, so is a positive instance. It is NL-complete under logspace many-one reductions.
For membership in NL, guess a graph path of at most edges, where is the number of vertices. Retain only the current vertex and a step counter. A reachable target has a simple graph path within that bound, and the stored indices use logarithmic space.
For hardness, take an NL machine on a fixed input and construct its configuration graph. Only polynomially many configurations are possible within the workspace bound, and all configurations and local transition edges can be enumerated with a logspace transducer. Add one target collecting the accepting configurations. The target is reachable from the initial configuration exactly when the original machine accepts. This translates any NL language into directed reachability while respecting the reduction's storage bound.
**St-connectivity** refers to a concept in graph theory, particularly in the context of directed and undirected graphs. It concerns whether there is a path between two specific vertices in a graph, typically denoted as vertex **S** and vertex **T**: 1. **In Undirected Graphs**: A graph is said to be **st-connected** if there exists a path between vertices **S** and **T**.

New to topics? Read the docs here!