Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
new :: PrimMonad m => Int -> m (MLGraph (PrimState m) d v e) Source #
Create a new graph.
Add nodes to the graph.
Add nodes with labels to the graph.
delNodes :: PrimMonad m => [Int] -> MLGraph (PrimState m) d v e -> m () Source #
Delete nodes from the graph.
addEdges :: PrimMonad m => [(Int, Int)] -> MLGraph (PrimState m) d v e -> m () Source #
Add edges to the graph.
addLEdges :: (PrimMonad m, Serialize e) => [LEdge e] -> MLGraph (PrimState m) d v e -> m () Source #
Add edges with labels to the graph.
delEdges :: PrimMonad m => [(Int, Int)] -> MLGraph (PrimState m) d v e -> m () Source #
Delete edges from the graph.
Instances
Set edge attribute.