Метод | Описание | |
---|---|---|
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. |
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. |
Результат | Gliph\Graph\MutableGraph | The current graph instance. |
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. | |
Результат | Gliph\Graph\MutableGraph | The current graph instance. |