Example #1
0
 public function testGetLimit()
 {
     $graph = new Graph();
     $vertex = $graph->v();
     $this->assertEquals($vertex, $vertex->getLimit(42));
     $this->assertEquals('graph.Vertex().GetLimit(42)', (string) $vertex);
 }
 public function testIntersect()
 {
     $graphA = new Graph();
     $cFollows = $graphA->v('C')->out('follows');
     $graphB = new Graph();
     $dFollows = $graphB->v('D')->out('follows');
     $cFollows->intersect($cFollows);
     $this->assertEquals('graph.Vertex().Out("follows").Intersect(graph.Vertex().Out("follows")).All()', (string) $cFollows->all());
 }