directedundirected
Directedundirected, commonly called a mixed graph, is a graph that contains both directed edges (arcs) and undirected edges between vertices. Formally, a mixed graph G can be described as G = (V, D, U) where V is a set of vertices, D ⊆ V × V is the set of directed edges, and U ⊆ {{u, v} | u, v ∈ V, u ≠ v} is the set of undirected edges. Each undirected edge connects its two endpoints without a specified direction, while each directed edge has a specified tail and head.
In a mixed graph, local measures generalize those of directed and undirected graphs. For a vertex v,
Connectivity concepts extend to mixed graphs with appropriate interpretations. Reachability follows the direction of directed edges
Algorithms on mixed graphs often adapt standard techniques. Shortest-path algorithms can treat undirected edges as bidirectional
Applications of directedundirected graphs include road and transportation networks with one-way and two-way streets, social and