PHP Class 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 :)
显示文件
Open project: trismegiste/mondrian
Protected Properties
Property |
Type |
Description |
|
$graph |
|
|
|
Public Methods
Method Details
__construct()
public method
public __construct ( Trismegiste\Mondrian\Graph\Graph $g ) |
$g |
Trismegiste\Mondrian\Graph\Graph |
|
public addEdge ( Vertex $source, Vertex $target ) |
$source |
Vertex |
|
$target |
Vertex |
|
addVertex()
public method
getEdgeIterator()
public method
getEdgeSet()
public method
getPartition()
public method
getSuccessor()
public method
getVertexSet()
public method
searchEdge()
public method
public searchEdge ( Vertex $source, Vertex $target ) |
$source |
Vertex |
|
$target |
Vertex |
|
Property Details
$graph protected_oe property