Hoogle Search

Within LTS Haskell 24.68 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. gmap :: Ord b => (a -> b) -> Relation a -> Relation b

    algebraic-graphs Algebra.Graph.Relation

    Transform a graph by applying a function to each of its vertices. This is similar to Functor's fmap but can be used with non-fully-parametric Relation. Complexity: O((n + m) * log(n)) time.

    gmap f empty      == empty
    gmap f (vertex x) == vertex (f x)
    gmap f (edge x y) == edge (f x) (f y)
    gmap id           == id
    gmap f . gmap g   == gmap (f . g)
    

  2. gmap :: Ord b => (a -> b) -> Relation a -> Relation b

    algebraic-graphs Algebra.Graph.Relation.Symmetric

    Transform a graph by applying a function to each of its vertices. This is similar to Functor's fmap but can be used with non-fully-parametric Relation. Complexity: O((n + m) * log(n)) time.

    gmap f empty      == empty
    gmap f (vertex x) == vertex (f x)
    gmap f (edge x y) == edge (f x) (f y)
    gmap id           == id
    gmap f . gmap g   == gmap (f . g)
    

  3. adjacencyIntMap :: (ToGraph t, ToVertex t ~ Int) => t -> IntMap IntSet

    algebraic-graphs Algebra.Graph.ToGraph

    The adjacency map of a graph: each vertex is associated with a set of its direct successors. Like adjacencyMap but specialised for graphs with vertices of type Int.

    adjacencyIntMap == Algebra.Graph.AdjacencyIntMap.adjacencyIntMap . toAdjacencyIntMap
    

  4. adjacencyIntMapTranspose :: (ToGraph t, ToVertex t ~ Int) => t -> IntMap IntSet

    algebraic-graphs Algebra.Graph.ToGraph

    The transposed adjacency map of a graph: each vertex is associated with a set of its direct predecessors. Like adjacencyMapTranspose but specialised for graphs with vertices of type Int.

    adjacencyIntMapTranspose == Algebra.Graph.AdjacencyIntMap.adjacencyIntMap . toAdjacencyIntMapTranspose
    

  5. adjacencyMap :: (ToGraph t, Ord (ToVertex t)) => t -> Map (ToVertex t) (Set (ToVertex t))

    algebraic-graphs Algebra.Graph.ToGraph

    The adjacency map of a graph: each vertex is associated with a set of its direct successors.

    adjacencyMap == Algebra.Graph.AdjacencyMap.adjacencyMap . toAdjacencyMap
    

  6. adjacencyMapTranspose :: (ToGraph t, Ord (ToVertex t)) => t -> Map (ToVertex t) (Set (ToVertex t))

    algebraic-graphs Algebra.Graph.ToGraph

    The transposed adjacency map of a graph: each vertex is associated with a set of its direct predecessors.

    adjacencyMapTranspose == Algebra.Graph.AdjacencyMap.adjacencyMap . toAdjacencyMapTranspose
    

  7. toAdjacencyIntMap :: ToGraph t => t -> AdjacencyIntMap

    algebraic-graphs Algebra.Graph.ToGraph

    Convert a value to the corresponding AdjacencyIntMap.

    toAdjacencyIntMap == foldg empty vertex overlay connect
    

  8. toAdjacencyIntMapTranspose :: ToGraph t => t -> AdjacencyIntMap

    algebraic-graphs Algebra.Graph.ToGraph

    Convert a value to the corresponding AdjacencyIntMap and transpose the result.

    toAdjacencyIntMapTranspose == foldg empty vertex overlay (flip connect)
    

  9. toAdjacencyMap :: ToGraph t => t -> AdjacencyMap (ToVertex t)

    algebraic-graphs Algebra.Graph.ToGraph

    Convert a value to the corresponding AdjacencyMap.

    toAdjacencyMap == foldg empty vertex overlay connect
    

  10. toAdjacencyMapTranspose :: ToGraph t => t -> AdjacencyMap (ToVertex t)

    algebraic-graphs Algebra.Graph.ToGraph

    Convert a value to the corresponding AdjacencyMap and transpose the result.

    toAdjacencyMapTranspose == foldg empty vertex overlay (flip connect)
    

Page 1016 of many | Previous | Next