|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
#include <SocialNetworkGraph.h>
Inherits TopoDiscoveryStrategy_t.
Public Member Functions | |
| std::set< size_t > | execute (size_t numMasters, size_t dimensions, size_t id, int) |
Private Member Functions | |
| void | setNetworkNeighbors () |
| double | manhattenDistance (size_t from, size_t to) |
| void | chooseRandomNeighbor () |
Private Attributes | |
| boost::random::mt19937 | gen_ |
| double | alpha_ |
| size_t | numMasters_ |
| size_t | dim_ |
| size_t | myID_ |
| size_t | randomNeighbor_ |
| std::set< size_t > | realNetworkNeighborPIDs_ |
Definition at line 48 of file SocialNetworkGraph.h.
|
inlineprivate |
compute random neighbor using power law distribution with \( \alpha = 2\).
Definition at line 131 of file SocialNetworkGraph.h.
References alpha_, gen_, manhattenDistance(), myID_, numMasters_, randomNeighbor_, and sum().
Referenced by execute().
|
inline |
Definition at line 52 of file SocialNetworkGraph.h.
References chooseRandomNeighbor(), dim_, myID_, numMasters_, realNetworkNeighborPIDs_, and setNetworkNeighbors().
|
inlineprivate |
Definition at line 118 of file SocialNetworkGraph.h.
References abs(), numMasters_, and sqrt().
Referenced by chooseRandomNeighbor().
|
inlineprivate |
Definition at line 77 of file SocialNetworkGraph.h.
References myID_, numMasters_, realNetworkNeighborPIDs_, and sqrt().
Referenced by execute().
|
private |
Definition at line 68 of file SocialNetworkGraph.h.
Referenced by chooseRandomNeighbor().
|
private |
Definition at line 71 of file SocialNetworkGraph.h.
Referenced by execute().
|
private |
Definition at line 67 of file SocialNetworkGraph.h.
Referenced by chooseRandomNeighbor().
|
private |
Definition at line 72 of file SocialNetworkGraph.h.
Referenced by chooseRandomNeighbor(), execute(), and setNetworkNeighbors().
|
private |
Definition at line 70 of file SocialNetworkGraph.h.
Referenced by chooseRandomNeighbor(), execute(), manhattenDistance(), and setNetworkNeighbors().
|
private |
Definition at line 74 of file SocialNetworkGraph.h.
Referenced by chooseRandomNeighbor().
|
private |
Definition at line 75 of file SocialNetworkGraph.h.
Referenced by execute(), and setNetworkNeighbors().