public function removeEdge($from, $to) { $this->vertices[$from]->detach($to); $this->vertices[$to]->detach($from); }