squaredirected
Squaredirected is a term used in graph theory to describe the square of a directed graph, a construction that augments a digraph by adding edges that connect vertices through short directed paths in the original graph. The resulting directed graph preserves the same set of vertices and expands the edge set to reflect two-step reachability, providing a compact encoding of immediate and two-step connections.
Formally, if G = (V, E) is a directed graph, its squaredirected graph G^2 = (V, E^2) has
Example: in a digraph with edges A→B and B→C, the squaredirected graph includes A→B and B→C from
Applications of squaredirected graphs appear in reachability analysis, routing and network design, and dataflow or dependency