PHP Интерфейс Gliph\Graph\MutableGraph

Наследование: extends Gliph\Graph\Graph
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

ensureEdge() публичный Метод

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.
Результат Gliph\Graph\MutableGraph The current graph instance.

removeEdge() публичный Метод

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.
Результат Gliph\Graph\MutableGraph The current graph instance.