public class EpidemicCommunityAlgorithm extends DecentralizedCommunityAlgorithm
Modifier and Type | Field and Description |
---|---|
protected HashMap<Object,Double> |
communityScores
Heard communities and their associated scores
|
graph, graphChanged, marker, nonUniqueMarker, rng, staticMode
Constructor and Description |
---|
EpidemicCommunityAlgorithm() |
EpidemicCommunityAlgorithm(Graph graph) |
EpidemicCommunityAlgorithm(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 |
computeNode(Node node)
Perform computation of one iteration of the algorithm on a given node
using the epidemic label propagation algorithm.
|
protected void |
originateCommunity(Node node)
Generate a new original community and attribute it to a node
|
attributeChanged, compute, edgeAdded, edgeAttributeAdded, edgeAttributeChanged, edgeAttributeRemoved, edgeRemoved, getMarker, getRandom, graphAttributeAdded, graphAttributeChanged, graphAttributeRemoved, graphCleared, init, init, nodeAdded, nodeAttributeAdded, nodeAttributeChanged, nodeAttributeRemoved, nodeRemoved, setMarker, setRandom, staticMode, stepBegins, terminate, updateDisplayClass
protected HashMap<Object,Double> communityScores
public EpidemicCommunityAlgorithm()
public EpidemicCommunityAlgorithm(Graph graph)
public EpidemicCommunityAlgorithm(Graph graph, String marker)
public void computeNode(Node node)
computeNode
in class DecentralizedCommunityAlgorithm
node
- protected void communityScores(Node u)
u
- The node for which the scores computation is performedprotected void originateCommunity(Node node)
DecentralizedCommunityAlgorithm
originateCommunity
in class DecentralizedCommunityAlgorithm
node
- The node that will originate the new communityWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses