Incoming edges to node
By convention, for undirected graphs, all edges incident to a node are
considered to be outgoing edges. Use outedges
with undirected graphs.
For graphs with multiple edges, inedges
and
predecessors
can return arrays of different lengths,
since there can be multiple incoming edges from some of the predecessors.