public function destroy()
    {
        $this->getGraph()->removeEdge($this);
        foreach ($this->getVertices() as $vertex) {
            $vertex->removeEdge($this);
        }
    }
public function destroy()
    {
        $this->getGraph()->removeEdge($this);
        foreach ($this->getVertices() as $vertex) {
            $vertex->removeEdge($this);
        }
    }
public function destroy ( ) { $ this -> getGraph ( ) -> removeEdge ( $ this ) ; foreach ( $ this -> getVertices ( ) as $ vertex ) { $ vertex -> removeEdge ( $ this ) ; } }
destroy edge and remove reference from vertices and graph

@uses Graph::removeEdge()
@uses Vertex::removeEdge()
@return void
destroy edge and remove reference from vertices and graph