public function testGetEdgesClones() { // 1 -> 2 -> 1 $graph = new Graph(); $v1 = $graph->createVertex(1); $v2 = $graph->createVertex(2); $e1 = $v1->createEdgeTo($v2); $e2 = $v2->createEdgeTo($v1); $graphClone = $graph->createGraphClone(); $this->assertEdgeEquals($e1, $graphClone->getEdgeClone($e1)); $this->assertEdgeEquals($e2, $graphClone->getEdgeCloneInverted($e1)); }