predecessors

Syntax

Description

preIDs = predecessors(G,nodeID)
returns the predecessor nodes of the node in directed graph G
specified by nodeID. The predecessor nodes form directed edges
with preIDs as the source nodes, and nodeID as
the target node.