public function getAlternatingSequence()
    {
        $edges    = $this->edges->getVector();
        $vertices = $this->vertices->getVector();

        $ret = array();
        for ($i = 0, $l = count($this->edges); $i < $l; ++$i) {
            $ret []= $vertices[$i];
            $ret []= $edges[$i];
        }
        $ret[] = $vertices[$i];

        return $ret;
    }
public function getAlternatingSequence()
    {
        $edges    = $this->edges->getVector();
        $vertices = $this->vertices->getVector();

        $ret = array();
        for ($i = 0, $l = count($this->edges); $i < $l; ++$i) {
            $ret []= $vertices[$i];
            $ret []= $edges[$i];
        }
        $ret[] = $vertices[$i];

        return $ret;
    }
public function getAlternatingSequence ( ) { $ edges = $ this -> edges -> getVector ( ) ; $ vertices = $ this -> vertices -> getVector ( ) ; $ ret = array ( ) ; for ( $ i = 0 , $ l = count ( $ this -> edges ) ; $ i < $ l ; ++ $ i ) { $ ret [ ] = $ vertices [ $ i ] ; $ ret [ ] = $ edges [ $ i ] ; } $ ret [ ] = $ vertices [ $ i ] ; return $ ret ; }
get alternating sequence of vertex, edge, vertex, edge, ..., vertex

@return array
get alternating sequence of vertex edge vertex edge ... vertex