PHP Class Trismegiste\Mondrian\Graph\BreadthFirstSearch
Uses the breadth first search method : shortest path and avoid cycle
Note : this is my own algorithm, I find it ugly and not DRY
Afficher le fichier
Open project: trismegiste/mondrian
Protected Properties
Свойство |
Type |
Description |
|
$stack |
|
|
|
Méthodes publiques
Méthode |
Description |
|
searchPath ( Vertex $src, Vertex $dst ) |
|
|
Méthodes protégées
Method Details
recursivSearchPath()
protected méthode
protected recursivSearchPath ( SplObjectStorage $step, Vertex $dst ) |
$step |
SplObjectStorage |
|
$dst |
Vertex |
|
resetVisited()
protected méthode
Reset visited state of edges
searchPath()
public méthode
public searchPath ( Vertex $src, Vertex $dst ) |
$src |
Vertex |
|
$dst |
Vertex |
|
Property Details
$stack protected_oe property