PHP 클래스 Trismegiste\Mondrian\Graph\Algorithm

Algorithm is an algorithm on Graph. This class does nothing except wrapping the graph. It is intended to avoid copy/paste of this content for real algorithms. See it as a default implementation. Therefore you only need to subclass this decorator and add your methods. It is not abstract since I want to test it but the spirit is :)
상속: implements Trismegiste\Mondrian\Graph\Graph
파일 보기 프로젝트 열기: trismegiste/mondrian

보호된 프로퍼티들

프로퍼티 타입 설명
$graph

공개 메소드들

메소드 설명
__construct ( Trismegiste\Mondrian\Graph\Graph $g ) Decorates the graph
addEdge ( Vertex $source, Vertex $target )
addVertex ( Vertex $v )
getEdgeIterator ( Vertex $v ) {@inheritDoc}
getEdgeSet ( )
getPartition ( ) {@inheritDoc}
getSuccessor ( Vertex $v )
getVertexSet ( )
searchEdge ( Vertex $source, Vertex $target )

메소드 상세

__construct() 공개 메소드

Decorates the graph
public __construct ( Trismegiste\Mondrian\Graph\Graph $g )
$g Trismegiste\Mondrian\Graph\Graph

addEdge() 공개 메소드

public addEdge ( Vertex $source, Vertex $target )
$source Vertex
$target Vertex

addVertex() 공개 메소드

public addVertex ( Vertex $v )
$v Vertex

getEdgeIterator() 공개 메소드

{@inheritDoc}
public getEdgeIterator ( Vertex $v )
$v Vertex

getEdgeSet() 공개 메소드

public getEdgeSet ( )

getPartition() 공개 메소드

{@inheritDoc}
public getPartition ( )

getSuccessor() 공개 메소드

public getSuccessor ( Vertex $v )
$v Vertex

getVertexSet() 공개 메소드

public getVertexSet ( )

searchEdge() 공개 메소드

public searchEdge ( Vertex $source, Vertex $target )
$source Vertex
$target Vertex

프로퍼티 상세

$graph 보호되어 있는 프로퍼티

protected $graph