Class SyncEpidemicCommunityAlgorithm
java.lang.Object
org.graphstream.algorithm.community.DecentralizedCommunityAlgorithm
org.graphstream.algorithm.community.EpidemicCommunityAlgorithm
org.graphstream.algorithm.community.SyncEpidemicCommunityAlgorithm
- All Implemented Interfaces:
Algorithm,DynamicAlgorithm,org.graphstream.stream.AttributeSink,org.graphstream.stream.ElementSink,org.graphstream.stream.Sink
public class SyncEpidemicCommunityAlgorithm extends EpidemicCommunityAlgorithm
This class implements the synchronous version of the
"Epidemic Community Detection Algorithm" as presented by Raghavan et
al.
- Author:
- Guillaume-Jean Herbiet
- Scientific Reference :
- U. N. Raghavan, R. Albert, and S. Kumara, “Near Linear Time Al- gorithm to Detect Community Structures in Large-scale Networks,” Physical Review E (Statistical, Nonlinear, and Soft Matter Physics), vol. 76, no. 3, 2007.
-
Constructor Summary
Constructors Constructor Description SyncEpidemicCommunityAlgorithm()SyncEpidemicCommunityAlgorithm(org.graphstream.graph.Graph graph)SyncEpidemicCommunityAlgorithm(org.graphstream.graph.Graph graph, String marker) -
Method Summary
Modifier and Type Method Description voidcompute()Compute an iteration of the algorithm for all the nodes of the network.voidcomputeNode(org.graphstream.graph.Node node)Perform computation of one iteration of the algorithm on a given node using the epidemic label propagation algorithm.voidterminate()Terminate the dynamic algorithm.Methods inherited from class org.graphstream.algorithm.community.DecentralizedCommunityAlgorithm
attributeChanged, defaultMessage, edgeAdded, edgeAttributeAdded, edgeAttributeChanged, edgeAttributeRemoved, edgeRemoved, getMarker, getRandom, graphAttributeAdded, graphAttributeChanged, graphAttributeRemoved, graphCleared, init, init, nodeAdded, nodeAttributeAdded, nodeAttributeChanged, nodeAttributeRemoved, nodeRemoved, setMarker, setRandom, staticMode, stepBegins
-
Constructor Details
-
SyncEpidemicCommunityAlgorithm
public SyncEpidemicCommunityAlgorithm() -
SyncEpidemicCommunityAlgorithm
public SyncEpidemicCommunityAlgorithm(org.graphstream.graph.Graph graph) -
SyncEpidemicCommunityAlgorithm
-
-
Method Details
-
terminate
public void terminate()Description copied from interface:DynamicAlgorithmTerminate the dynamic algorithm.- Specified by:
terminatein interfaceDynamicAlgorithm- Overrides:
terminatein classDecentralizedCommunityAlgorithm- See Also:
Algorithm.init(org.graphstream.graph.Graph)
-
compute
public void compute()Description copied from class:DecentralizedCommunityAlgorithmCompute an iteration of the algorithm for all the nodes of the network.- Specified by:
computein interfaceAlgorithm- Overrides:
computein classDecentralizedCommunityAlgorithm- See Also:
Algorithm.init(Graph)
-
computeNode
public void computeNode(org.graphstream.graph.Node node)Description copied from class:EpidemicCommunityAlgorithmPerform computation of one iteration of the algorithm on a given node using the epidemic label propagation algorithm.- Overrides:
computeNodein classEpidemicCommunityAlgorithm- Parameters:
node- node to compute
-