getVertexSet() публичный Метод

Get the vertices in the graph
public getVertexSet ( ) : array
Результат array
Пример #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;
 }
Пример #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;
 }