10 #ifndef TEUCHOS_GRAPH_HPP
11 #define TEUCHOS_GRAPH_HPP
18 typedef std::vector<int> NodeEdges;
19 typedef std::vector<NodeEdges> Graph;
21 Graph make_graph_with_nnodes(
int nnodes);
22 int get_nnodes(Graph
const& g);
23 void add_edge(Graph& g,
int i,
int j);
24 NodeEdges
const& get_edges(Graph
const& g,
int i);
25 NodeEdges& get_edges(Graph& g,
int i);
26 int count_edges(
const Graph& g,
int i);
27 Graph make_transpose(Graph
const& g);
28 int at(Graph
const& g,
int i,
int j);
30 std::ostream& operator<<(std::ostream& os, Graph
const& g);