public function AddAsChild($node, $parent) { $arrow = new DefaultEdge($parent, $node); $this->graph->addEdge($arrow); return $this; }