1 #ifndef ADJACENCY_LIST_H
2 #define ADJACENCY_LIST_H
13 unsigned int add_node();
14 void add_edge(
unsigned int u,
unsigned int v);
15 std::vector<std::pair<unsigned int, unsigned int> >& edge_list();
16 std::set<unsigned int>* adjacent_vertices(
unsigned int u);
17 unsigned int num_vertices();
18 unsigned int num_edges();
19 unsigned int degree(
unsigned int u);
22 unsigned int num_vertices_;
23 unsigned int num_edges_;
24 unsigned int current_vertex_number_;
27 std::vector<std::set<unsigned int> > adj_list;
30 std::vector<std::pair<unsigned int, unsigned int> > edge_list_;
Definition: AdjacencyList.h:9