src/Vertex/Vertex.php
public function getOtherCoordinate(CoordinateInterface $coordinate) {
        if ($coordinate->isEqual($this->from)) {
            return $this->to;
        } else if ($coordinate->isEqual($this->to)) {
            return $this->from;
        }
        return null;
    }
public function getOtherCoordinate(CoordinateInterface $coordinate) {
        if ($coordinate->isEqual($this->from)) {
            return $this->to;
        } else if ($coordinate->isEqual($this->to)) {
            return $this->from;
        }
        return null;
    }
public function getOtherCoordinate ( CoordinateInterface $ coordinate ) { if ( $ coordinate -> isEqual ( $ this -> from ) ) { return $ this -> to ; } else if ( $ coordinate -> isEqual ( $ this -> to ) ) { return $ this -> from ; } return null ; }
Returns the other coordinate who is not the coordinate passed on argument
@param  CoordinateInterface $coordinate
@return null|Coordinate
Returns the other coordinate who is not the coordinate passed on argument