Grafos-0.1.0.0: Grafos Haskell

Graph

type Graph a = (Set a, Set (a, a)) Source #

graph :: Graph a Source #

addVertice :: (Eq a, Ord a) => a -> Graph a -> Graph a Source #

addVertices :: (Eq a, Ord a) => [a] -> Graph a -> Graph a Source #

addEdge :: (Eq a, Ord a) => (a, a) -> Graph a -> Graph a Source #

addEdges :: (Eq a, Ord a) => [(a, a)] -> Graph a -> Graph a Source #