|
| | TBreathFS (const PGraph &GraphPt, const bool &InitBigQ=true) |
| |
| void | SetGraph (const PGraph &GraphPt) |
| | Sets the graph to be used by the BFS to GraphPt and resets the data structures. More...
|
| |
| int | DoBfs (const int &StartNode, const bool &FollowOut, const bool &FollowIn, const int &TargetNId=-1, const int &MxDist=TInt::Mx) |
| | Performs BFS from node id StartNode for at maps MxDist steps by only following in-links (parameter FollowIn = true) and/or out-links (parameter FollowOut = true). More...
|
| |
| int | GetNVisited () const |
| | Returns the number of nodes visited/reached by the BFS. More...
|
| |
| void | GetVisitedNIdV (TIntV &NIdV) const |
| | Returns the IDs of the nodes visited/reached by the BFS. More...
|
| |
| int | GetHops (const int &SrcNId, const int &DstNId) const |
| |
| int | GetRndPath (const int &SrcNId, const int &DstNId, TIntV &PathNIdV) const |
| |
template<class PGraph>
class TBreathFS< PGraph >
Breath-First-Search class. The class is meant for executing many BFSs over a fixed graph. This means that the class can keep the hash tables and queues initialized between different calls of the DoBfs() function.
Definition at line 74 of file bfsdfs.h.