PHP 인터페이스 Gliph\Graph\MutableGraph

상속: extends Gliph\Graph\Graph
파일 보기 프로젝트 열기: sdboyer/gliph

공개 메소드들

메소드 설명
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.