edgegraph.traversal.helpers

edgegraph.traversal.helpers#

Helper functions for graph traversals.

Module Attributes

LNK_UNKNOWN_NONNEIGHBOR

Unknown edge classes treated as non-neighbors.

LNK_UNKNOWN_NEIGHBOR

Unknown edge classes treated as neighbors.

LNK_UNKNOWN_ERROR

Unknown edge classes raise an exception.

DIR_SENS_FORWARD

Follow links forward

DIR_SENS_ANY

Follow links regardless of directionality

DIR_SENS_BACKWARD

Follow links backwards

Functions

find_links(v1, v2[, direction_sensitive, ...])

Find the link(s) that connect v1 to v2.

ineighbors(vert[, direction_sensitive, ...])

Identify the neighbors of a given vertex (generator).

neighbors(vert[, direction_sensitive, ...])

Identify the neighbors of a given vertex (non-generator).