edges-0.9.0.2: Tools for efficient immutable graphs

Safe HaskellNone
LanguageHaskell2010

Edges.NodeCounting

Synopsis

Documentation

data NodeCounts entity Source #

Instances
Show (NodeCounts a) # 
Instance details

Defined in Edges.Instances

Serialize (NodeCounts a) # 
Instance details

Defined in Edges.Instances.Cereal

Methods

put :: Putter (NodeCounts a) #

get :: Get (NodeCounts a) #

data Node entity Source #

Instances
Eq (Node a) # 
Instance details

Defined in Edges.Instances

Methods

(==) :: Node a -> Node a -> Bool #

(/=) :: Node a -> Node a -> Bool #

Ord (Node a) # 
Instance details

Defined in Edges.Instances

Methods

compare :: Node a -> Node a -> Ordering #

(<) :: Node a -> Node a -> Bool #

(<=) :: Node a -> Node a -> Bool #

(>) :: Node a -> Node a -> Bool #

(>=) :: Node a -> Node a -> Bool #

max :: Node a -> Node a -> Node a #

min :: Node a -> Node a -> Node a #

Show (Node a) # 
Instance details

Defined in Edges.Instances

Methods

showsPrec :: Int -> Node a -> ShowS #

show :: Node a -> String #

showList :: [Node a] -> ShowS #

Serialize (Node a) # 
Instance details

Defined in Edges.Instances.Cereal

Methods

put :: Putter (Node a) #

get :: Get (Node a) #

data Amount entity Source #

Total amount of unique entities of the type

Instances
Show (Amount a) # 
Instance details

Defined in Edges.Instances

Methods

showsPrec :: Int -> Amount a -> ShowS #

show :: Amount a -> String #

showList :: [Amount a] -> ShowS #

data Edges source target Source #

Instances
Eq (Edges a b) # 
Instance details

Defined in Edges.Instances

Methods

(==) :: Edges a b -> Edges a b -> Bool #

(/=) :: Edges a b -> Edges a b -> Bool #

Show (Edges a b) # 
Instance details

Defined in Edges.Instances

Methods

showsPrec :: Int -> Edges a b -> ShowS #

show :: Edges a b -> String #

showList :: [Edges a b] -> ShowS #

Serialize (Edges a b) # 
Instance details

Defined in Edges.Instances.Cereal

Methods

put :: Putter (Edges a b) #

get :: Get (Edges a b) #

node :: Edges source target -> Node source -> NodeCounts source Source #

nodeTargets :: Edges source target -> Node source -> NodeCounts target Source #

targets :: Edges source target -> NodeCounts source -> NodeCounts target Source #

Count the occurrences of targets based on the occurrences of sources.