Safe Haskell | None |
---|---|
Language | Haskell2010 |
Module that provides functions for different kinds of path-finding in graph.
Synopsis
- allPathsInGraph :: Ord e => GenericGraph v e -> Int -> [EdgeList e]
- allPathsFromVertex :: Ord e => GenericGraph v e -> Int -> Int -> [Int] -> [EdgeList e]
- dfsAllPaths :: EdgeList e -> Int -> Int -> [EdgeList e]
- dfsSearch :: EdgeList e -> Int -> Int -> Maybe (EdgeList e, [Int])
- findBeginnings :: EdgeList e -> [Int]
Documentation
allPathsInGraph :: Ord e => GenericGraph v e -> Int -> [EdgeList e] Source #
Calculates all branched paths in graph up to the given length.
allPathsFromVertex :: Ord e => GenericGraph v e -> Int -> Int -> [Int] -> [EdgeList e] Source #
Calculates all branched paths up to the given length from given vertex in graph considering indices of vertices that shouldn't be visited during path-finding.
dfsAllPaths :: EdgeList e -> Int -> Int -> [EdgeList e] Source #
Finds all paths between vertices with given indices in EdgeList
.