10 #ifndef META_UNDIRECTED_GRAPH_H_
11 #define META_UNDIRECTED_GRAPH_H_
15 #include <unordered_set>
30 template <
class Node = default_node,
class Edge = default_edge>
34 using adjacency_list =
typename graph<Node, Edge>::adjacency_list;
35 using vec_t = std::vector<std::pair<Node, adjacency_list>>;
45 const adjacency_list&
adjacent(node_id
id)
const;
58 virtual void add_edge(Edge
edge, node_id source, node_id dest)
override;
69 const_iterator
begin()
const {
return {
nodes_.cbegin()}; }
76 const_iterator
end()
const {
return {
nodes_.cend()}; }
109 bool display_errors =
false);
118 using std::runtime_error::runtime_error;
123 #include "graph/undirected_graph.tcc"
Definition: edge_iterator.h:22
Definition: edge_iterator.h:14