public class ConstantEdgeWeightManipulationScheme extends EdgeWeightManipulationScheme
Constructor and Description |
---|
ConstantEdgeWeightManipulationScheme(double edgeWeight)
The ConstantEdgeWeightManipulationScheme assigns a constant weight to every edge.
|
Modifier and Type | Method and Description |
---|---|
double |
getEdgeWeight() |
double |
reweighEdge(SNEdge edgeToReweigh,
double simulationTime)
Method to re-evaluate the interaction strength associated with an edge at a given time
|
double |
weighEdge(SNNode source,
SNNode target,
SocialGraph.EDGEMEDIUM edgemedium)
Method to describe how an edge of a given medium, that is to be established between two nodes is to be weighed
|
public ConstantEdgeWeightManipulationScheme(double edgeWeight)
edgeWeight
- The weight that is to be assigned to every edgepublic double getEdgeWeight()
public double weighEdge(SNNode source, SNNode target, SocialGraph.EDGEMEDIUM edgemedium)
EdgeWeightManipulationScheme
weighEdge
in class EdgeWeightManipulationScheme
source
- The node the corresponding edge stems fromtarget
- The node the corresponding edge points towardsedgemedium
- The medium the edge is established viapublic double reweighEdge(SNEdge edgeToReweigh, double simulationTime)
EdgeWeightManipulationScheme
reweighEdge
in class EdgeWeightManipulationScheme
edgeToReweigh
- The edge that is to be re-evaluatedsimulationTime
- The current system time