public class MannaSenYookCommunicationGraph extends ScalefreeCommunicationGraph
SocialGraph.EDGEMEDIUM
edges, neighbours, nodes, outgoingEdges, outgoingEdgesMedium
associatedSimulationContainer
Constructor and Description |
---|
MannaSenYookCommunicationGraph(SimulationContainer associatedSimulationContainer,
SNConfiguration sNConfiguration,
int numberOfNodes) |
MannaSenYookCommunicationGraph(SimulationContainer associatedSimulationContainer,
SNConfiguration sNConfiguration,
java.util.Set<SNNode> initialNodes) |
MannaSenYookCommunicationGraph(SimulationContainer associatedSimulationContainer,
SNConfiguration sNConfiguration,
java.util.Set<SNNode> nodes,
java.util.Set<SNEdge> edges,
java.util.HashMap<SNNode,java.util.Set<SNNode>> neighbours) |
Modifier and Type | Method and Description |
---|---|
void |
addNodes(SNConfiguration sNconfiguration,
java.util.Set<SNNode> nodesToAdd)
(Network type specific) method to add a number of nodes (and the edges that go with them) to the social graph
|
protected double |
calculateProbabilityConnected(SNNode sourceNode,
SNNode targetNode,
java.util.Map<SNNode,java.lang.Integer> nodeDegree) |
double |
getAlpha() |
double |
getBeta() |
createEdges, getNoConnectedEdges, getNoInitSeeds
getCommunicationNeighbours, getCommunicationNeighbours
addEdge, addIsolatedNode, getAllMediaNeighbours, getEdges, getNeighbours, getNeighbours, getNeighbours, getNeighbours, getNodes, modifyEdgeMedium, modifyEdgeNodes, modifyEdgeSource, modifyEdgeTarget, removeEdge, replaceEdge, retrieveAllEdges, retrieveEdge
getAssociatedSimulationContainer
public MannaSenYookCommunicationGraph(SimulationContainer associatedSimulationContainer, SNConfiguration sNConfiguration, java.util.Set<SNNode> nodes, java.util.Set<SNEdge> edges, java.util.HashMap<SNNode,java.util.Set<SNNode>> neighbours)
public MannaSenYookCommunicationGraph(SimulationContainer associatedSimulationContainer, SNConfiguration sNConfiguration, java.util.Set<SNNode> initialNodes)
public MannaSenYookCommunicationGraph(SimulationContainer associatedSimulationContainer, SNConfiguration sNConfiguration, int numberOfNodes)
public double getAlpha()
public double getBeta()
public void addNodes(SNConfiguration sNconfiguration, java.util.Set<SNNode> nodesToAdd)
SocialGraph
addNodes
in class ScalefreeCommunicationGraph
sNconfiguration
- The configuration the social graph is based onnodesToAdd
- The nodes to be added to the social graphprotected double calculateProbabilityConnected(SNNode sourceNode, SNNode targetNode, java.util.Map<SNNode,java.lang.Integer> nodeDegree)
calculateProbabilityConnected
in class ScalefreeCommunicationGraph