LAM/MPI logo

MPI binding for MPI_GRAPH_CREATE

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just the tutorials

Neutral Binding

MPI_GRAPH_CREATE(comm_old, nnodes, index, edges, reorder, comm_graph)
[ IN comm_old] input communicator (handle)
[ IN nnodes] number of nodes in graph (integer)
[ IN index] array of integers describing node degrees (see below)
[ IN edges] array of integers describing graph edges (see below)
[ IN reorder] ranking may be reordered ( true) or not ( false) (logical)
[ OUT comm_graph] communicator with graph topology added (handle)


C Binding

int MPI_Graph_create(MPI_Comm comm_old, int nnodes, int *index, int *edges, int reorder, MPI_Comm *comm_graph)

FORTRAN Binding

MPI_GRAPH_CREATE(COMM_OLD, NNODES, INDEX, EDGES, REORDER, COMM_GRAPH, IERROR)
INTEGER COMM_OLD, NNODES, INDEX(*), EDGES(*), COMM_GRAPH, IERROR
LOGICAL REORDER

C++ Binding
(in the MPI:: namespace)

Graphcomm Intracomm::Create_graph(int nnodes, const int index[], const int edges[], bool reorder) const