A vertex (B) is a successor to another vertex (A) if an arc points from
A to B. In such an arc, A is considered the 'tail', B is considered the
'head', as it would be visually represented with an arrow:
A -> B
Note that, in set terms,
g.adjacentTo(x) == g.successorsOf(x) ∪ g.predecessorsOf(x)
public successorsOf ( object $vertex ) : Generator | ||
$vertex | object | The vertex whose successor vertices should be enumerated. |
return | Generator | A generator that yields successor vertices as values. |