PHP Interface Gliph\Graph\MutableGraph

Inheritance: extends Gliph\Graph\Graph
Exibir arquivo Open project: sdboyer/gliph

Public Methods

Method Description
ensureEdge ( object $u, object $v ) : Gliph\Graph\MutableGraph Adds an undirected edge to this graph.
removeEdge ( $u, $v ) : Gliph\Graph\MutableGraph Removes an undirected edge from the graph.

Method Details

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.

removeEdge() public method

Removes an undirected edge from the graph.
public removeEdge ( $u, $v ) : Gliph\Graph\MutableGraph
$u One vertex in the edge pair to remove.
$v The other vertex in the edge pair to remove.
return Gliph\Graph\MutableGraph The current graph instance.