votca 2024-dev
Loading...
Searching...
No Matches
graph_bf_visitor.h
Go to the documentation of this file.
1/*
2 * Copyright 2009-2019 The VOTCA Development Team
3 * (http://www.votca.org)
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License")
6 *
7 * You may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 */
19
20#ifndef __VOTCA_TOOLS_GRAPH_BF_VISITOR_H
21#define __VOTCA_TOOLS_GRAPH_BF_VISITOR_H
22
23#include "graphvisitor.h"
24#include <deque>
25#include <queue>
26
34namespace votca {
35namespace tools {
36
37class Graph;
38class Edge;
39class GraphNode;
40
42 private:
43 std::deque<std::queue<Edge>> edge_que_;
44
47 void addEdges_(const Graph& graph, Index vertex) override;
48 Edge getEdge_() override;
49
50 public:
51 Graph_BF_Visitor() = default;
52 bool queEmpty() const override;
53};
54} // namespace tools
55} // namespace votca
56#endif // __VOTCA_TOOLS_GRAPH_BF_VISITOR_H
Connects to vertices.
Definition edge.h:42
std::deque< std::queue< Edge > > edge_que_
void addEdges_(const Graph &graph, Index vertex) override
base class for all analysis tools
Definition basebead.h:33
Eigen::Index Index
Definition types.h:26