public class Leung extends EpidemicCommunityAlgorithm
Constructor and Description |
---|
Leung() |
Leung(org.graphstream.graph.Graph graph) |
Leung(org.graphstream.graph.Graph graph,
double m,
double delta)
Create a new Leung algorithm instance, attached to the specified graph,
using the default markers for the node community and edge weight
attributes.
|
Leung(org.graphstream.graph.Graph graph,
String marker) |
Leung(org.graphstream.graph.Graph graph,
String marker,
double m,
double delta)
Create a new Leung algorithm instance, attached to the specified graph,
using the specified marker to store the community attribute, and the
default marker to retrieve the weight attribute of graph edges.
|
Leung(org.graphstream.graph.Graph graph,
String marker,
String weightMarker)
Create a new Leung algorithm instance, attached to the specified graph,
using the specified marker to store the community attribute, and the
specified weightMarker to retrieve the weight attribute of graph edges.
|
Leung(org.graphstream.graph.Graph graph,
String marker,
String weightMarker,
double m,
double delta)
Create a new Leung algorithm instance, attached to the specified graph,
using the specified marker to store the community attribute, and the
specified weightMarker to retrieve the weight attribute of graph edges.
|
Modifier and Type | Method and Description |
---|---|
void |
computeNode(org.graphstream.graph.Node node)
Perform computation of one iteration of the algorithm on a given node
using the epidemic label propagation algorithm.
|
void |
setParameters(double m,
double delta)
Sets the preference exponent and hop attenuation factor to the given
values.
|
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
public Leung()
public Leung(org.graphstream.graph.Graph graph)
public Leung(org.graphstream.graph.Graph graph, String marker)
public Leung(org.graphstream.graph.Graph graph, String marker, String weightMarker)
graph
- graph to which the algorithm will be appliedmarker
- community attribute markerweightMarker
- edge weight markerpublic Leung(org.graphstream.graph.Graph graph, double m, double delta)
graph
- graph to which the algorithm will be appliedm
- comparable function preference exponent valuedelta
- hop attenuation factor valuepublic Leung(org.graphstream.graph.Graph graph, String marker, double m, double delta)
graph
- graph to which the algorithm will be appliedmarker
- community attribute markerm
- comparable function preference exponent valuedelta
- hop attenuation factor valuepublic Leung(org.graphstream.graph.Graph graph, String marker, String weightMarker, double m, double delta)
graph
- graph to which the algorithm will be appliedmarker
- community attribute markerweightMarker
- edge weight markerm
- comparable function preference exponent valuedelta
- hop attenuation factor valuepublic void setParameters(double m, double delta)
m
- comparable function preference exponent valuedelta
- hop attenuation factor valuepublic void computeNode(org.graphstream.graph.Node node)
EpidemicCommunityAlgorithm
computeNode
in class EpidemicCommunityAlgorithm
Copyright © 2015. All rights reserved.