public function getIndexEdge(Edge $edge)
    {
        $id = array_search($edge, $this->edges, true);
        if ($id === false) {
            throw new OutOfBoundsException('Given edge does NOT exist');
        }
        return $id;
    }
public function getIndexEdge(Edge $edge)
    {
        $id = array_search($edge, $this->edges, true);
        if ($id === false) {
            throw new OutOfBoundsException('Given edge does NOT exist');
        }
        return $id;
    }
public function getIndexEdge ( Edge $ edge ) { $ id = array_search ( $ edge , $ this -> edges , true ) ; if ( $ id === false ) { throw new OutOfBoundsException ( 'Given edge does NOT exist' ) ; } return $ id ; }
get array index for given Edge

@param Edge $edge
@throws OutOfBoundsException
@return mixed
get array index for given Edge