public function getColorVertices()
    {
        $colors = $this->getColors();
        $ret = array(0 => array(), 1 => array());

        foreach ($this->graph->getVertices()->getMap() as $vid => $vertex) {
            $ret[$colors[$vid]][$vid] = $vertex;
        }

        return $ret;
    }
public function getColorVertices()
    {
        $colors = $this->getColors();
        $ret = array(0 => array(), 1 => array());

        foreach ($this->graph->getVertices()->getMap() as $vid => $vertex) {
            $ret[$colors[$vid]][$vid] = $vertex;
        }

        return $ret;
    }
public function getColorVertices ( ) { $ colors = $ this -> getColors ( ) ; $ ret = array ( 0 => array ( ) , 1 => array ( ) ) ; foreach ( $ this -> graph -> getVertices ( ) -> getMap ( ) as $ vid => $ vertex ) { $ ret [ $ colors [ $ vid ] ] [ $ vid ] = $ vertex ; } return $ ret ; }
get groups of vertices per color

@return array[] array of arrays of vertices
get groups of vertices per color