MPI_Graph_neighbors

--- Returns the neighbors of a node associated with a graph topology

Input Parameters

comm
communicator with graph topology (handle)
rank
rank of process in group of comm (integer)
maxneighbors
size of array neighbors (integer)

Output Parameters

neighbors
ranks of processes that are neighbors to specified process (array of integer)

Synopsis


#include "mpi.h"
int MPI_Graph_neighbors ( comm, rank, maxneighbors, neighbors )
MPI_Comm  comm;
int       rank;
int      maxneighbors;
int      *neighbors;

Location: graph_nbr.c