Hoogle Search
Within LTS Haskell 24.70 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
preSet :: Ord a => a -> AdjacencyMap e a -> Set aalgebraic-graphs Algebra.Graph.Labelled.AdjacencyMap The preset of an element x is the set of its direct predecessors. Complexity: O(n * log(n)) time and O(n) memory.
preSet x empty == Set.empty preSet x (vertex x) == Set.empty preSet 1 (edge e 1 2) == Set.empty preSet y (edge e x y) == if e == zero then Set.empty else Set.fromList [x]
vertexSet :: AdjacencyMap e a -> Set aalgebraic-graphs Algebra.Graph.Labelled.AdjacencyMap The set of vertices of a given graph. Complexity: O(n) time and memory.
vertexSet empty == Set.empty vertexSet . vertex == Set.singleton vertexSet . vertices == Set.fromList
edgeSet :: Ord a => Graph a -> Set (a, a)algebraic-graphs Algebra.Graph.NonEmpty The set of edges of a given graph. Complexity: O(s * log(m)) time and O(m) memory.
edgeSet (vertex x) == Set.empty edgeSet (edge x y) == Set.singleton (x,y) edgeSet . edges1 == Set.fromList . toList
vertexSet :: Ord a => Graph a -> Set aalgebraic-graphs Algebra.Graph.NonEmpty The set of vertices of a given graph. Complexity: O(s * log(n)) time and O(n) memory.
vertexSet . vertex == Set.singleton vertexSet . vertices1 == Set.fromList . toList vertexSet . clique1 == Set.fromList . toList
edgeSet :: Ord a => AdjacencyMap a -> Set (a, a)algebraic-graphs Algebra.Graph.NonEmpty.AdjacencyMap The set of edges of a given graph. Complexity: O((n + m) * log(m)) time and O(m) memory.
edgeSet (vertex x) == Set.empty edgeSet (edge x y) == Set.singleton (x,y) edgeSet . edges == Set.fromList
postSet :: Ord a => a -> AdjacencyMap a -> Set aalgebraic-graphs Algebra.Graph.NonEmpty.AdjacencyMap The postset of a vertex is the set of its direct successors. Complexity: O(log(n)) time and O(1) memory.
postSet x (vertex x) == Set.empty postSet x (edge x y) == Set.fromList [y] postSet 2 (edge 1 2) == Set.empty
preSet :: Ord a => a -> AdjacencyMap a -> Set aalgebraic-graphs Algebra.Graph.NonEmpty.AdjacencyMap The preset of an element x is the set of its direct predecessors. Complexity: O(n * log(n)) time and O(n) memory.
preSet x (vertex x) == Set.empty preSet 1 (edge 1 2) == Set.empty preSet y (edge x y) == Set.fromList [x]
vertexSet :: AdjacencyMap a -> Set aalgebraic-graphs Algebra.Graph.NonEmpty.AdjacencyMap The set of vertices of a given graph. Complexity: O(n) time and memory.
vertexSet . vertex == Set.singleton vertexSet . vertices1 == Set.fromList . toList vertexSet . clique1 == Set.fromList . toList
edgeSet :: Relation a -> Set (a, a)algebraic-graphs Algebra.Graph.Relation The set of edges of a given graph. Complexity: O(1) time.
edgeSet empty == Set.empty edgeSet (vertex x) == Set.empty edgeSet (edge x y) == Set.singleton (x,y) edgeSet . edges == Set.fromList
postSet :: Ord a => a -> Relation a -> Set aalgebraic-graphs Algebra.Graph.Relation The postset of an element x is the set of elements that are related to it on the right, i.e. postSet x == { a | xRa }. In the context of directed graphs, this corresponds to the set of direct successors of vertex x. Complexity: O(n + m) time and O(n) memory.
postSet x empty == Set.empty postSet x (vertex x) == Set.empty postSet x (edge x y) == Set.fromList [y] postSet 2 (edge 1 2) == Set.empty