Gliph\Graph\MutableGraph::ensureEdge PHP Method

ensureEdge() public method

Adds an undirected edge to this graph.
public ensureEdge ( object $u, object $v ) : Gliph\Graph\MutableGraph
$u object One object vertex in the edge pair. The vertex will be added to the graph if it is not already present.
$v object The other object vertex in the edge pair. The vertex will be added to the graph if it is not already present.
return Gliph\Graph\MutableGraph The current graph instance.
    public function ensureEdge($u, $v);