votca 2024.2-dev
|
#include <graph_df_visitor.h>
Public Member Functions | |
Graph_DF_Visitor ()=default | |
bool | queEmpty () const override |
Public Member Functions inherited from votca::tools::GraphVisitor | |
virtual void | exploreNode (std::pair< Index, GraphNode > &vertex_and_node, Graph &graph, Edge edge=DUMMY_EDGE) |
Edge(0,0) is a dummy value. | |
GraphVisitor ()=default | |
std::vector< Index > | getUnexploredVertex (const Edge edge) const |
Determine which vertices in the edge, if any, have not been explored. | |
void | setStartingVertex (Index vertex) |
Index | getStartingVertex () const |
void | initialize (Graph &graph) |
Initialize the graphvisitor the default starting point is 0. | |
virtual void | exec (Graph &graph, Edge edge) |
Edge | nextEdge (Graph graph) |
std::set< Index > | getExploredVertices () const |
Get the set of all the vertices that have been explored. | |
bool | vertexExplored (const Index vertex) const |
Has the vertex been explored. | |
Private Member Functions | |
void | addEdges_ (const Graph &g, Index vertex) override |
Edge | getEdge_ () override |
Private Attributes | |
std::list< Edge > | edge_list_ |
Additional Inherited Members | |
Protected Member Functions inherited from votca::tools::GraphVisitor | |
Protected Attributes inherited from votca::tools::GraphVisitor | |
std::set< Index > | explored_ |
set containing all the vertix ids that have been explored | |
Index | startingVertex_ = 0 |
The vertex the visitor started on. | |
Definition at line 43 of file graph_df_visitor.h.
|
default |
|
overrideprivatevirtual |
The core of the breadth first visitor is in how the edges are added to the queue in this function
Implements votca::tools::GraphVisitor.
Definition at line 43 of file graph_df_visitor.cc.
|
overrideprivatevirtual |
Implements votca::tools::GraphVisitor.
Definition at line 36 of file graph_df_visitor.cc.
|
overridevirtual |
Determine if the exploration is complete, this is determined by whether the edge queue is empty or not, it does not necessarily mean all vertices in a graph have been explored.
Reimplemented from votca::tools::GraphVisitor.
Definition at line 34 of file graph_df_visitor.cc.
|
private |
Definition at line 45 of file graph_df_visitor.h.