public abstract class CommunicationGraph extends SocialGraph
SocialGraph.EDGEMEDIUMedges, neighbours, nodes, outgoingEdges, outgoingEdgesMediumassociatedSimulationContainer| Constructor and Description |
|---|
CommunicationGraph(SimulationContainer associatedSimulationContainer,
SNConfiguration sNConfiguration,
int numberOfNodes) |
CommunicationGraph(SimulationContainer associatedSimulationContainer,
SNConfiguration sNConfiguration,
java.util.Set<SNNode> initialNodes) |
CommunicationGraph(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 |
|---|---|
java.util.HashMap<SNNode,java.util.Set<SNNode>> |
getCommunicationNeighbours()
Method to derive the neighbour map in a network where all edges are of communication medium
|
java.util.Set<SNNode> |
getCommunicationNeighbours(SNNode nodeOfInterest)
Method to derive the neighbours of a given node in a network where all edges are of communication medium
|
addEdge, addIsolatedNode, addNodes, createEdges, getAllMediaNeighbours, getEdges, getNeighbours, getNeighbours, getNeighbours, getNeighbours, getNodes, modifyEdgeMedium, modifyEdgeNodes, modifyEdgeSource, modifyEdgeTarget, removeEdge, replaceEdge, retrieveAllEdges, retrieveEdgegetAssociatedSimulationContainerpublic CommunicationGraph(SimulationContainer associatedSimulationContainer, SNConfiguration sNConfiguration, java.util.Set<SNNode> nodes, java.util.Set<SNEdge> edges, java.util.HashMap<SNNode,java.util.Set<SNNode>> neighbours)
public CommunicationGraph(SimulationContainer associatedSimulationContainer, SNConfiguration sNConfiguration, java.util.Set<SNNode> initialNodes)
public CommunicationGraph(SimulationContainer associatedSimulationContainer, SNConfiguration sNConfiguration, int numberOfNodes) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic java.util.HashMap<SNNode,java.util.Set<SNNode>> getCommunicationNeighbours()
public java.util.Set<SNNode> getCommunicationNeighbours(SNNode nodeOfInterest)
nodeOfInterest - The node whose neighbours are to be determined