Safe Haskell | Safe |
---|---|

Language | Haskell2010 |

Functions for interacting with a graph as a directed graph

## Synopsis

- type Node = Int
- type NodeSet = Set Node
- type Edge = (Node, Node)
- data IntGraph
- empty :: IntGraph
- addNode :: Node -> IntGraph -> IntGraph
- nodes :: IntGraph -> [Node]
- removeNode :: Node -> IntGraph -> IntGraph
- addEdge :: Edge -> IntGraph -> IntGraph
- edges :: IntGraph -> [Edge]
- removeEdge :: Edge -> IntGraph -> IntGraph
- fromEdges :: [Edge] -> IntGraph