Retrieve the number of neighbors of a node. See Neighbors and NeighborsOf(Int32).

Namespace:  MPI
Assembly:  MPI (in MPI.dll)
Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static int MPI_Graph_neighbors_count(
	int comm,
	int rank,
	out int nneighbors
)
Visual Basic (Declaration)
Public Shared Function MPI_Graph_neighbors_count ( _
	comm As Integer, _
	rank As Integer, _
	<OutAttribute> ByRef nneighbors As Integer _
) As Integer
Visual C++
public:
static int MPI_Graph_neighbors_count(
	int comm, 
	int rank, 
	[OutAttribute] int% nneighbors
)

Parameters

comm
Type: System..::.Int32
The communicator.
rank
Type: System..::.Int32
The rank of the node of interest.
nneighbors
Type: System..::.Int32 %
Output parameter to store the number of neighbors.

See Also