Can anyone use plain simple English to explain how index
in function MPI_Graph_create(MPI_Comm comm_old, int nnodes, const int index[],
const int edges[], int reorder, MPI_Comm *comm_graph)
I have been analyzing the MPI_Graph_create
function as specified in the MPI man pages. I miss the way index[]
is computed. The standard specifies that index
variable refers to the degree of the nodes which means a count of edges incident from the particular node . For the adjacency matrix below, the standard has index = 2, 3, 4, 6
. I was expecting 2 , 1 ,1 ,2
based on the edges specified n the adjacency matrix.
Process Neighbors
0 1,3
1 0
2 3
3 0,2
Correct answers from the MPI standard are :-
nnodes = 4
index = 2, 3, 4, 6
edges = 1 ,3, 0, 3, 0 ,2