Gliph\Graph\Graph::adjacentTo PHP Method

adjacentTo() public method

A vertex is adjacent to another vertex if they share an edge. Edge direction, if any, does not matter. The generator yields only a value: the adjacent vertex.
public adjacentTo ( object $vertex ) : Generator
$vertex object The vertex whose adjacent vertices should be visited.
return Generator A generator that yields adjacent vertices as values.
    public function adjacentTo($vertex);