public abstract class ScalefreePseudoCountCommunicationGraph extends CommunicationGraph
SocialGraph.EDGEMEDIUMedges, neighbours, nodes, outgoingEdges, outgoingEdgesMediumassociatedSimulationContainer| Constructor and Description |
|---|
ScalefreePseudoCountCommunicationGraph(SimulationContainer associatedSimulationContainer,
SNConfiguration sNConfiguration,
int numberOfNodes) |
ScalefreePseudoCountCommunicationGraph(SimulationContainer associatedSimulationContainer,
SNConfiguration sNConfiguration,
java.util.Set<SNNode> initialNodes) |
ScalefreePseudoCountCommunicationGraph(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 abstract double |
calculateProbabilityConnected(SNNode sourceNode,
SNNode targetNode,
java.util.Map<SNNode,java.lang.Integer> nodeInDegreeMap) |
java.util.Set<SNEdge> |
createEdges(SNConfiguration sNConfiguration,
java.util.Set<SNNode> initialNodes)
(Network type specific) method to generate edges between a set of initial nodes.
|
int |
getNoConnectedEdges() |
int |
getNoInitSeeds() |
getCommunicationNeighbours, getCommunicationNeighboursaddEdge, addIsolatedNode, getAllMediaNeighbours, getEdges, getNeighbours, getNeighbours, getNeighbours, getNeighbours, getNodes, modifyEdgeMedium, modifyEdgeNodes, modifyEdgeSource, modifyEdgeTarget, removeEdge, replaceEdge, retrieveAllEdges, retrieveEdgegetAssociatedSimulationContainerpublic ScalefreePseudoCountCommunicationGraph(SimulationContainer associatedSimulationContainer, SNConfiguration sNConfiguration, java.util.Set<SNNode> nodes, java.util.Set<SNEdge> edges, java.util.HashMap<SNNode,java.util.Set<SNNode>> neighbours)
public ScalefreePseudoCountCommunicationGraph(SimulationContainer associatedSimulationContainer, SNConfiguration sNConfiguration, java.util.Set<SNNode> initialNodes)
public ScalefreePseudoCountCommunicationGraph(SimulationContainer associatedSimulationContainer, SNConfiguration sNConfiguration, int numberOfNodes)
public int getNoInitSeeds()
public int getNoConnectedEdges()
public void addNodes(SNConfiguration sNconfiguration, java.util.Set<SNNode> nodesToAdd)
SocialGraphaddNodes in class SocialGraphsNconfiguration - The configuration the social graph is based onnodesToAdd - The nodes to be added to the social graphpublic java.util.Set<SNEdge> createEdges(SNConfiguration sNConfiguration, java.util.Set<SNNode> initialNodes)
SocialGraphcreateEdges in class SocialGraphsNConfiguration - The configuration of the social graph of interestinitialNodes - The nodes the social graph should be initialized with