PCGPathFinder Class Reference
| Inherits from | NSObject |
| Declared in | PCGPathFinder.h PCGPathFinder.m |
Overview
The PCGPathFinder is an abstract class that defines methods used to find a path in a PCGDirectedGraph.
This class should not be instantiated; instead, one of its subcass should be used (e.g.: PCGPathFinderDijkstra).
Instance Methods
findPathInGraph:fromVertex:toVertex:
Perform a search in the specified graph for a (shortest) path between the specified source and target vertices.
- (PCGPath *)findPathInGraph:(PCGDirectedGraph *)graph fromVertex:(PCGVertex)source toVertex:(PCGVertex)targetReturn Value
a PCGPath
Declared In
PCGPathFinder.hfindPathInGraph:fromVertex:toVertexPassingTest:
Perform a search in the specified graph for a (shortest) path between the specified source vertex
and an other vertex that pass the test in the specified predicate block.
- (PCGPath *)findPathInGraph:(PCGDirectedGraph *)graph fromVertex:(PCGVertex)source toVertexPassingTest:(PCGGVertexPredicate)predicateReturn Value
a PCGPath
Declared In
PCGPathFinder.h