程序包 mpi

类 DistGraphNeighbors

java.lang.Object
mpi.DistGraphNeighbors

public final class DistGraphNeighbors extends Object
Adjacency information for a distributed graph topology.
  • 构造器概要

    构造器
    限定符
    构造器
    说明
    protected
    DistGraphNeighbors(int[] sources, int[] sourceWeights, int[] destinations, int[] destWeights, boolean weighted)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    int
    Gets a process for which the calling process is a source
    int
    Gets the weight of an edge out of the calling process.
    int
    Gets the number of edges into this process.
    int
    Gets the number of edges out of this process.
    int
    getSource(int i)
    Gets a process for which the calling processs is a destination.
    int
    Gets the weight of an edge into the calling process.
    boolean
    Returns false if MPI_UNWEIGHTED was supplied during creation.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • DistGraphNeighbors

      protected DistGraphNeighbors(int[] sources, int[] sourceWeights, int[] destinations, int[] destWeights, boolean weighted)
  • 方法详细资料

    • getInDegree

      public int getInDegree()
      Gets the number of edges into this process.
      返回:
      number of edges into this process
    • getOutDegree

      public int getOutDegree()
      Gets the number of edges out of this process.
      返回:
      number of edges out of this process
    • isWeighted

      public boolean isWeighted()
      Returns false if MPI_UNWEIGHTED was supplied during creation.
      返回:
      false if MPI_UNWEIGHTED was supplied, true otherwise
    • getSource

      public int getSource(int i)
      Gets a process for which the calling processs is a destination.
      参数:
      i - source index
      返回:
      process for which the calling processs is a destination
    • getSourceWeight

      public int getSourceWeight(int i)
      Gets the weight of an edge into the calling process.
      参数:
      i - source index
      返回:
      weight of the edge into the calling process
    • getDestination

      public int getDestination(int i)
      Gets a process for which the calling process is a source
      参数:
      i - destination index
      返回:
      process for which the calling process is a source
    • getDestinationWeight

      public int getDestinationWeight(int i)
      Gets the weight of an edge out of the calling process.
      参数:
      i - destination index
      返回:
      weight of an edge out of the calling process