This source file includes following definitions.
- mca_topo_base_dist_graph_neighbors_count
   1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 #include "ompi_config.h"
  11 
  12 #include "ompi/communicator/communicator.h"
  13 #include "ompi/info/info.h"
  14 #include "ompi/mca/topo/base/base.h"
  15 
  16 
  17 int mca_topo_base_dist_graph_neighbors_count(ompi_communicator_t *comm,
  18                                              int *inneighbors,
  19                                              int *outneighbors, int *weighted)
  20 {
  21     mca_topo_base_comm_dist_graph_2_2_0_t* dist_graph = comm->c_topo->mtc.dist_graph;
  22 
  23     if (!OMPI_COMM_IS_DIST_GRAPH(comm)) {
  24         return OMPI_ERR_NOT_FOUND;
  25     }
  26 
  27     *inneighbors = dist_graph->indegree;
  28     *outneighbors = dist_graph->outdegree;
  29     *weighted = (int)dist_graph->weighted;
  30 
  31     return MPI_SUCCESS;
  32 }