程序包 mpi
类 GraphParms
java.lang.Object
mpi.GraphParms
Graph topology information associated with a communicator.
-
构造器概要
构造器限定符构造器说明protected
GraphParms
(int[] index, int[] edges) Constructs a graph topology information object. -
方法概要
-
构造器详细资料
-
GraphParms
protected GraphParms(int[] index, int[] edges) Constructs a graph topology information object.- 参数:
index
- node degrees.edges
- graph edges.
-
-
方法详细资料
-
getIndexCount
public int getIndexCount()Returns the number of nodes.- 返回:
- number of nodes.
-
getIndex
public int getIndex(int i) Returns the index of the nodei
.getIndex(0)
returns the degree of the node0
, andgetIndex(i)-getIndex(i-1)
is the degree of the nodei
.- 参数:
i
- position of the node.- 返回:
- the index.
-
getEdgeCount
public int getEdgeCount()Returns the number of edges.- 返回:
- number of edges.
-
getEdge
public int getEdge(int i) Returns the edgei
.The list of neighbors of node zero is stored in
getEdge(j)
, for0
≤j
≤getIndex(0)-1
and the list of neighbors of nodei
,i
>0
, is stored ingetEdge(j)
,getIndex(i-1)
≤j
≤getIndex(i)-1
.- 参数:
i
- index of the edge.- 返回:
- the edge.
-