Teuchos - Trilinos Tools Package Version of the Day
Loading...
Searching...
No Matches
Teuchos_Graph.hpp
1// @HEADER
2// *****************************************************************************
3// Teuchos: Common Tools Package
4//
5// Copyright 2004 NTESS and the Teuchos contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef TEUCHOS_GRAPH_HPP
11#define TEUCHOS_GRAPH_HPP
12
13#include <vector>
14#include <iosfwd>
15
16namespace Teuchos {
17
18typedef std::vector<int> NodeEdges;
19typedef std::vector<NodeEdges> Graph;
20
21Graph make_graph_with_nnodes(int nnodes);
22int get_nnodes(Graph const& g);
23void add_edge(Graph& g, int i, int j);
24NodeEdges const& get_edges(Graph const& g, int i);
25NodeEdges& get_edges(Graph& g, int i);
26int count_edges(const Graph& g, int i);
27Graph make_transpose(Graph const& g);
28int at(Graph const& g, int i, int j);
29
30std::ostream& operator<<(std::ostream& os, Graph const& g);
31
32}
33
34#endif
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...