Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Edges source target
- newtype Node entity = Node Int
- data NodeCounts entity
- data EdgeCounts source target
- newtype Amount entity = Amount Int
- edgesSourceAmount :: Edges source x -> Amount source
- edgesTargetAmount :: Edges x target -> Amount target
- edgesUnfoldM :: Monad m => Edges a b -> UnfoldM m (Node a, Node b)
- edgesList :: Edges a b -> [(Node a, Node b)]
- listEdges :: [(Node a, Node b)] -> Edges a b
- listBipartiteEdges :: [(Node a, Node b)] -> (Edges a b, Edges b a)
- primListBipartiteEdges :: [(Int, Int)] -> (Edges a b, Edges b a)
- primFoldableWithAmountsEdges :: Foldable f => Int -> Int -> f (Int, Word32) -> Edges a b
- nodeCountsList :: NodeCounts entity -> [Word64]
- nodeCountsUnboxedVector :: NodeCounts entity -> Vector Word64
- unindexNodeCounts :: (Eq entity, Hashable entity) => (Int -> Maybe entity) -> NodeCounts entity -> HashMap entity Int
Documentation
data NodeCounts entity Source #
Instances
Show (NodeCounts a) # | |
Defined in Edges.Instances showsPrec :: Int -> NodeCounts a -> ShowS # show :: NodeCounts a -> String # showList :: [NodeCounts a] -> ShowS # | |
NFData (NodeCounts a) # | |
Defined in Edges.Instances rnf :: NodeCounts a -> () # | |
Serialize (NodeCounts a) # | |
Defined in Edges.Instances.Cereal put :: Putter (NodeCounts a) # get :: Get (NodeCounts a) # |
data EdgeCounts source target Source #
Instances
NFData (EdgeCounts a b) # | |
Defined in Edges.Instances rnf :: EdgeCounts a b -> () # |
edgesSourceAmount :: Edges source x -> Amount source Source #
edgesTargetAmount :: Edges x target -> Amount target Source #
nodeCountsList :: NodeCounts entity -> [Word64] Source #
nodeCountsUnboxedVector :: NodeCounts entity -> Vector Word64 Source #
unindexNodeCounts :: (Eq entity, Hashable entity) => (Int -> Maybe entity) -> NodeCounts entity -> HashMap entity Int Source #