Portability | type families |
---|---|
Stability | experimental |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Safe Haskell | Safe-Inferred |
- class Graph g => AdjacencyListGraph g where
- defaultOutEdges :: AdjacencyListGraph g => Vertex g -> g [(Vertex g, Vertex g)]
- module Data.Graph.Class
Documentation
class Graph g => AdjacencyListGraph g whereSource
Minimal definition: source
, target
, and either adjacentVertices
with
or outEdges
= defaultOutEdges
outEdges
source :: Edge g -> g (Vertex g)Source
target :: Edge g -> g (Vertex g)Source
outEdges :: Vertex g -> g [Edge g]Source
outDegree :: Vertex g -> g IntSource
adjacentVertices :: Vertex g -> g [Vertex g]Source
defaultOutEdges :: AdjacencyListGraph g => Vertex g -> g [(Vertex g, Vertex g)]Source
module Data.Graph.Class