public final class DistGraphNeighbors
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
DistGraphNeighbors(int[] sources,
int[] sourceWeights,
int[] destinations,
int[] destWeights,
boolean weighted) |
Modifier and Type | Method and Description |
---|---|
int |
getDestination(int i)
Gets a process for which the calling process is a source
|
int |
getDestinationWeight(int i)
Gets the weight of an edge out of the calling process.
|
int |
getInDegree()
Gets the number of edges into this process.
|
int |
getOutDegree()
Gets the number of edges out of this process.
|
int |
getSource(int i)
Gets a process for which the calling process is a destination.
|
int |
getSourceWeight(int i)
Gets the weight of an edge into the calling process.
|
boolean |
isWeighted()
Returns false if
MPI_UNWEIGHTED was supplied during creation. |
protected DistGraphNeighbors(int[] sources, int[] sourceWeights, int[] destinations, int[] destWeights, boolean weighted)
public int getInDegree()
public int getOutDegree()
public boolean isWeighted()
MPI_UNWEIGHTED
was supplied during creation.MPI_UNWEIGHTED
was supplied, true otherwisepublic int getSource(int i)
i
- source indexpublic int getSourceWeight(int i)
i
- source indexpublic int getDestination(int i)
i
- destination indexpublic int getDestinationWeight(int i)
i
- destination index