public class RandomInDelTMS extends TopologyManipulationScheme
Modifier and Type | Field and Description |
---|---|
double |
edgeDeletionProbability |
selfReferentialTopology
Constructor and Description |
---|
RandomInDelTMS(double edgeDeletionProbability,
double edgeInsertionProbability,
boolean selfReferentialTopology) |
Modifier and Type | Method and Description |
---|---|
double |
getEdgeDeletionProbability() |
double |
getEdgeInsertionProbability() |
void |
manipulateTopology(SimulationContainer simulationContainer,
SocialGraph socialGraph)
Method that add / removes edges with a fixed, uniform probability from the graph for all media
|
protected void |
manipulateTopology(SimulationContainer simulationContainer,
SocialGraph socialGraph,
SocialGraph.EDGEMEDIUM edgemedium)
This method manipulates the topology of the graph for only one given medium,
where edges are added and removed proportionally to the probabilities of the scheme.
|
isSelfReferential
public RandomInDelTMS(double edgeDeletionProbability, double edgeInsertionProbability, boolean selfReferentialTopology)
public double getEdgeDeletionProbability()
public double getEdgeInsertionProbability()
public void manipulateTopology(SimulationContainer simulationContainer, SocialGraph socialGraph)
manipulateTopology
in class TopologyManipulationScheme
simulationContainer
- The container the simulation takes place insocialGraph
- The graph whose topology is to be manipulatedprotected void manipulateTopology(SimulationContainer simulationContainer, SocialGraph socialGraph, SocialGraph.EDGEMEDIUM edgemedium)
simulationContainer
- The container the simulation takes place insocialGraph
- The graph whose topology is to be manipulatededgemedium
- The medium for which the topology is manipulated