public function getVerticesGroup($group)
    {
        $vertices = array();
        foreach ($this->graph->getVertices()->getMap() as $vid => $vertex) {
            if ($vertex->getGroup() === $group) {
                $vertices[$vid] = $vertex;
            }
        }

        return new Vertices($vertices);
    }
public function getVerticesGroup($group)
    {
        $vertices = array();
        foreach ($this->graph->getVertices()->getMap() as $vid => $vertex) {
            if ($vertex->getGroup() === $group) {
                $vertices[$vid] = $vertex;
            }
        }

        return new Vertices($vertices);
    }
public function getVerticesGroup ( $ group ) { $ vertices = array ( ) ; foreach ( $ this -> graph -> getVertices ( ) -> getMap ( ) as $ vid => $ vertex ) { if ( $ vertex -> getGroup ( ) === $ group ) { $ vertices [ $ vid ] = $ vertex ; } } return new Vertices ( $ vertices ) ; }
get set of all Vertices in the given group

@param  int      $group
@return Vertices
@uses Vertex::getGroup()
get set of all Vertices in the given group