PHP Interface Gliph\Graph\MutableGraph

Inheritance: extends Gliph\Graph\Graph
Afficher le fichier Open project: sdboyer/gliph

Méthodes publiques

Méthode 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 méthode

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.
Résultat Gliph\Graph\MutableGraph The current graph instance.

removeEdge() public méthode

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.
Résultat Gliph\Graph\MutableGraph The current graph instance.