public class SyncEpidemicCommunityAlgorithm extends EpidemicCommunityAlgorithm
Modifier and Type | Field and Description |
---|---|
protected int |
iteration
Identify the current iteration of this algorithm to ensure synchronous
behavior.
|
communityScores
graph, graphChanged, marker, nonUniqueMarker, rng, staticMode
Constructor and Description |
---|
SyncEpidemicCommunityAlgorithm() |
SyncEpidemicCommunityAlgorithm(Graph graph) |
SyncEpidemicCommunityAlgorithm(Graph graph,
String marker) |
Modifier and Type | Method and Description |
---|---|
protected void |
communityScores(Node u)
Compute the scores for all relevant communities for the selected node
using epidemic label propagation paradigm.
|
void |
compute()
Compute an iteration of the algorithm for all the nodes of the network.
|
void |
computeNode(Node node)
Perform computation of one iteration of the algorithm on a given node
using the epidemic label propagation algorithm.
|
void |
terminate()
Terminate the dynamic algorithm.
|
originateCommunity
attributeChanged, edgeAdded, edgeAttributeAdded, edgeAttributeChanged, edgeAttributeRemoved, edgeRemoved, getMarker, getRandom, graphAttributeAdded, graphAttributeChanged, graphAttributeRemoved, graphCleared, init, init, nodeAdded, nodeAttributeAdded, nodeAttributeChanged, nodeAttributeRemoved, nodeRemoved, setMarker, setRandom, staticMode, stepBegins, updateDisplayClass
protected int iteration
public SyncEpidemicCommunityAlgorithm()
public SyncEpidemicCommunityAlgorithm(Graph graph)
public SyncEpidemicCommunityAlgorithm(Graph graph, String marker)
public void terminate()
DynamicAlgorithm
terminate
in interface DynamicAlgorithm
terminate
in class DecentralizedCommunityAlgorithm
Algorithm.init(org.graphstream.graph.Graph)
public void compute()
DecentralizedCommunityAlgorithm
compute
in interface Algorithm
compute
in class DecentralizedCommunityAlgorithm
Algorithm.init(Graph)
public void computeNode(Node node)
EpidemicCommunityAlgorithm
computeNode
in class EpidemicCommunityAlgorithm
protected void communityScores(Node u)
EpidemicCommunityAlgorithm
communityScores
in class EpidemicCommunityAlgorithm
u
- The node for which the scores computation is performedWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses