graphite-0.9.6.0: Graphs and networks library
Data.Graph.Traversal
Synopsis
bfsVertices :: (Graph g, Hashable v, Eq v, Ord v) => g v e -> v -> [v] Source #
breadh-first-search vertices starting at a particular vertex
dfsVertices :: (Graph g, Hashable v, Eq v, Ord v) => g v e -> v -> [v] Source #
depth-first-search vertices starting at a particular vertex