Partition the node set based on the degrees of the nodes.
Returns the neighbors of a given node either in outgoing or incoming direction.
Returns the neighbors of a given node either in outgoing or incoming direction.
Allows adding new edges to a graph.
Allows adding new edges to a graph.
Call a particular function for each node with its corresponding state in parallel based on a
partition.
Call a particular function for each node with its corresponding state in parallel.
A graph is a tuple (N, E)
, where N
is a set of nodes and E
a set of
edges. Each edge connects exactly two nodes.
Partition the node set based on the in degrees of the nodes.
A graph that allows storing a value per node.
Partition the node set based on the out degrees of the nodes.
Used by input formats to read node or edge values from bytes.
Returns the neighbors of a given node.
Returns the neighbors of a given node.