1 #ifndef TEUCHOS_GRAPH_HPP
2 #define TEUCHOS_GRAPH_HPP
9 typedef std::vector<int> NodeEdges;
10 typedef std::vector<NodeEdges> Graph;
12 Graph make_graph_with_nnodes(
int nnodes);
13 int get_nnodes(Graph
const& g);
14 void add_edge(Graph& g,
int i,
int j);
15 NodeEdges
const& get_edges(Graph
const& g,
int i);
16 NodeEdges& get_edges(Graph& g,
int i);
17 int count_edges(
const Graph& g,
int i);
18 Graph make_transpose(Graph
const& g);
19 int at(Graph
const& g,
int i,
int j);
21 std::ostream& operator<<(std::ostream& os, Graph
const& g);