public class HeterogeneousNewtonianInversePowerlawCommunicationGraph extends HeterogeneousScalefreeCommunicationGraph
SocialGraph.EDGEMEDIUM
edges, neighbours, nodes, outgoingEdges, outgoingEdgesMedium
associatedSimulationContainer
Constructor and Description |
---|
HeterogeneousNewtonianInversePowerlawCommunicationGraph(SimulationContainer associatedSimulationContainer,
SNConfiguration sNConfiguration,
int numberOfNodes) |
HeterogeneousNewtonianInversePowerlawCommunicationGraph(SimulationContainer associatedSimulationContainer,
SNConfiguration sNConfiguration,
java.util.Set<SNNode> initialNodes) |
HeterogeneousNewtonianInversePowerlawCommunicationGraph(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
|
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.
|
getConsumerGroupNoConnectedEdgesMapping, getNoInitSeeds
getCommunicationNeighbours, getCommunicationNeighbours
addEdge, addIsolatedNode, getAllMediaNeighbours, getEdges, getNeighbours, getNeighbours, getNeighbours, getNeighbours, getNodes, modifyEdgeMedium, modifyEdgeNodes, modifyEdgeSource, modifyEdgeTarget, removeEdge, replaceEdge, retrieveAllEdges, retrieveEdge
getAssociatedSimulationContainer
public HeterogeneousNewtonianInversePowerlawCommunicationGraph(SimulationContainer associatedSimulationContainer, SNConfiguration sNConfiguration, java.util.Set<SNNode> nodes, java.util.Set<SNEdge> edges, java.util.HashMap<SNNode,java.util.Set<SNNode>> neighbours)
public HeterogeneousNewtonianInversePowerlawCommunicationGraph(SimulationContainer associatedSimulationContainer, SNConfiguration sNConfiguration, java.util.Set<SNNode> initialNodes)
public HeterogeneousNewtonianInversePowerlawCommunicationGraph(SimulationContainer associatedSimulationContainer, SNConfiguration sNConfiguration, int numberOfNodes)
public void addNodes(SNConfiguration sNconfiguration, java.util.Set<SNNode> nodesToAdd)
SocialGraph
addNodes
in class HeterogeneousScalefreeCommunicationGraph
sNconfiguration
- 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)
SocialGraph
createEdges
in class HeterogeneousScalefreeCommunicationGraph
sNConfiguration
- The configuration of the social graph of interestinitialNodes
- The nodes the social graph should be initialized with