public function inDegreeOf($vertex);
public function process(Vertex $vertex, Digraph $graph) { if ($graph->inDegreeOf($vertex) === 0 && !$vertex instanceof Vertex\Function_) { Helper::remove($vertex, $graph); return true; } return false; }