This documents the development version of NetworkX. Documentation for the current release can be found here.
Returns an iterator over predecessor nodes of n.
A predecessor of n is a node m such that there exists a directed
edge from m to n.
n (node) – A node in the graph
NetworkXError – If n is not in the graph.