hbgl-0.1.0.0: A Haskell version of the Boost Graph Library

Safe HaskellNone

Data.Graph.Algorithms.DFS

Contents

Synopsis

Depth-first search

xdfsWith :: forall gr c. (InspectableGraph gr, VertexListGraph gr) => (Context gr -> [Vertex]) -> (Context gr -> c) -> [Vertex] -> gr -> [c]

dfsWith :: (VertexListGraph gr, InspectableGraph gr) => (Context gr -> c) -> [Vertex] -> gr -> [c]

dfsWith' :: (VertexListGraph gr, InspectableGraph gr) => (Context gr -> c) -> gr -> [c]

dfs :: (VertexListGraph gr, InspectableGraph gr) => [Vertex] -> gr -> [Vertex]

Depth-first forests

xdffWith :: DecomposableGraph gr => (Context gr -> [Vertex]) -> (Context gr -> c) -> [Vertex] -> gr -> [Tree c]

dffWith :: DecomposableGraph gr => (Context gr -> c) -> [Vertex] -> gr -> [Tree c]

dffWith' :: (DecomposableGraph gr, VertexListGraph gr) => (Context gr -> c) -> gr -> [Tree c]

dff :: DecomposableGraph gr => [Vertex] -> gr -> [Tree Vertex]

Derived

Topsort