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.

  1. preSet :: Ord a => a -> AdjacencyMap e a -> Set a

    algebraic-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]
    

  2. vertexSet :: AdjacencyMap e a -> Set a

    algebraic-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
    

  3. 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
    

  4. vertexSet :: Ord a => Graph a -> Set a

    algebraic-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
    

  5. 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
    

  6. postSet :: Ord a => a -> AdjacencyMap a -> Set a

    algebraic-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
    

  7. preSet :: Ord a => a -> AdjacencyMap a -> Set a

    algebraic-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]
    

  8. vertexSet :: AdjacencyMap a -> Set a

    algebraic-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
    

  9. 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
    

  10. postSet :: Ord a => a -> Relation a -> Set a

    algebraic-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
    

Page 1628 of many | Previous | Next