| Copyright | Thodoris Papakonstantinou 2017-2026 |
|---|---|
| License | LGPL-3 |
| Maintainer | dev@tpapak.com |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Data.Graph.AdjacencyList.DFS
Description
Depth-first search (DFS) on directed graphs. Produces a topological ordering,
a visited-order list, and the set of discovered vertices. Also provides
longestPath on DAGs and connectivity queries.
Documentation
Result of a depth-first search from a single source vertex.
Constructors
| DFS | |
Types
type Distances = IntMap Vertex Source #
Map from vertex to its distance (number of edges) from the source in a DAG.