| Portability | type families |
|---|---|
| Stability | experimental |
| Maintainer | Edward Kmett <ekmett@gmail.com> |
| Safe Haskell | Safe-Inferred |
Data.Graph.Class.AdjacencyList
Description
- 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 = defaultOutEdgesoutEdges
Methods
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
Instances
defaultOutEdges :: AdjacencyListGraph g => Vertex g -> g [(Vertex g, Vertex g)]Source
module Data.Graph.Class