strand v0.3.0 Strand.Protocol.Digraph protocol

Summary

Functions

counts the inbound edges of a node

calculates the inbound edges of a node

calculates the nodes that precede a node

reverses a directed graph

Types

t()
t() :: term

Functions

in_degree(dg, n)

counts the inbound edges of a node

in_edges(dg, n)

calculates the inbound edges of a node

predecessors(dg, n)

calculates the nodes that precede a node

transpose(dg)

reverses a directed graph