Teuchos - Trilinos Tools Package Version of the Day
Loading...
Searching...
No Matches
Teuchos_Graph.hpp
1#ifndef TEUCHOS_GRAPH_HPP
2#define TEUCHOS_GRAPH_HPP
3
4#include <vector>
5#include <iosfwd>
6
7namespace Teuchos {
8
9typedef std::vector<int> NodeEdges;
10typedef std::vector<NodeEdges> Graph;
11
12Graph make_graph_with_nnodes(int nnodes);
13int get_nnodes(Graph const& g);
14void add_edge(Graph& g, int i, int j);
15NodeEdges const& get_edges(Graph const& g, int i);
16NodeEdges& get_edges(Graph& g, int i);
17int count_edges(const Graph& g, int i);
18Graph make_transpose(Graph const& g);
19int at(Graph const& g, int i, int j);
20
21std::ostream& operator<<(std::ostream& os, Graph const& g);
22
23}
24
25#endif
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...