getVertexSet() public method

Get the vertices in the graph
public getVertexSet ( ) : array
return array
Exemplo n.º 1
0
 protected function findVertex(Graph $g, $type, $name)
 {
     foreach ($g->getVertexSet() as $vertex) {
         if (get_class($vertex) == $type && $vertex->getName() == $name) {
             return $vertex;
         }
     }
     return null;
 }
Exemplo n.º 2
0
 protected function findVertex(Graph $g, $type, $name)
 {
     $nsVertex = 'Trismegiste\\Mondrian\\Transform\\Vertex\\';
     foreach ($g->getVertexSet() as $vertex) {
         if (get_class($vertex) == $nsVertex . $type && $vertex->getName() == $name) {
             return $vertex;
         }
     }
     return null;
 }