Struct graph_traits<mpi::graph_communicator>
boost::graph_traits<mpi::graph_communicator> — Traits structure that allows a communicator with graph topology to be view as a graph by the Boost Graph Library.
Synopsis
struct graph_traits<mpi::graph_communicator> {
typedef int vertex_descriptor;
typedef std::pair< int, int > edge_descriptor;
typedef directed_tag directed_category;
typedef disallow_parallel_edge_tag edge_parallel_category;
typedef unspecified out_edge_iterator;
typedef int degree_size_type;
typedef unspecified adjacency_iterator;
typedef counting_iterator< int > vertex_iterator;
typedef int vertices_size_type;
typedef unspecified edge_iterator;
typedef int edges_size_type;
static vertex_descriptor null_vertex();
};
Description
Специализация<graph_traits
>для коммуникатора MPI позволяет рассматривать коммуникатор с топологией графов как граф. MPI-коммуникатор с топологией графов отвечает требованиям Graph, Incidence Graph, Adjacency Graph, Vertex List Graph и Edge List Graph из библиотеки Boost Graph.
graph_traits
public static functions
- <
staticvertex_descriptornull_vertex();
>Возвращает дескриптор вершины, который никогда не может относиться к какой-либо действительной вершине.