public function between(ID $node_id, string $class=""): \ArrayIterator
    {
        return new \ArrayIterator(
            array_merge(
                $this->from($node_id, $class)->getArrayCopy(), 
                $this->to($node_id, $class)->getArrayCopy()
            )
        );
    }
public function between(ID $node_id, string $class=""): \ArrayIterator
    {
        return new \ArrayIterator(
            array_merge(
                $this->from($node_id, $class)->getArrayCopy(), 
                $this->to($node_id, $class)->getArrayCopy()
            )
        );
    }
public function between ( ID $ node_id , string $ class = "" ) : \ ArrayIterator { return new \ ArrayIterator ( array_merge ( $ this -> from ( $ node_id , $ class ) -> getArrayCopy ( ) , $ this -> to ( $ node_id , $ class ) -> getArrayCopy ( ) ) ) ; }
Retrieves a list of edges between the list's owner node and the given
node.

@param ID $node_id      The other node.
@param string        $class The type of edge (defined in edge class) to return

@return \ArrayIterator An array of edge objects in between. Returns an empty array if there is no such connections.
Retrieves a list of edges between the list s owner node and the given node .