public abstract class SNEdge
extends java.lang.Object
Constructor and Description |
---|
SNEdge(SNNode source,
SNNode target,
double edgeWeight)
Creates a directed edge from source to target of the given medium with a given edgeWeight.
|
SNEdge(SNNode source,
SNNode target,
double edgeWeight,
SocialGraph.EDGEMEDIUM medium)
Creates a directed edge from source to target of the given medium with a given edgeWeight.
|
SNEdge(SNNode source,
SNNode target,
double edgeWeight,
java.lang.String edgeLabel)
Creates a directed edge from source to target of the given medium with a given edgeWeight.
|
SNEdge(SNNode source,
SNNode target,
double edgeWeight,
java.lang.String edgeLabel,
SocialGraph.EDGEMEDIUM medium)
Creates a directed edge from source to target of the given medium with a given edgeWeight and a human-readible label
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEdgeLabel() |
double |
getEdgeWeight() |
SocialGraph.EDGEMEDIUM |
getMedium() |
SNNode |
getSource() |
SNNode |
getTarget() |
void |
setEdgeWeight(double edgeWeight) |
public SNEdge(SNNode source, SNNode target, double edgeWeight, java.lang.String edgeLabel, SocialGraph.EDGEMEDIUM medium)
source
- The ConsumerAgent from whom the interaction stemstarget
- The ConsumerAgent addressed by the interactionedgeWeight
- The strength of the interaction described by the edgeedgeLabel
- A human readible label for the interactionmedium
- The medium, as semantic context, of the interactionpublic SNEdge(SNNode source, SNNode target, double edgeWeight, SocialGraph.EDGEMEDIUM medium)
source
- The ConsumerAgent from whom the interaction stemstarget
- The ConsumerAgent addressed by the interactionedgeWeight
- The strength of the interaction described by the edgemedium
- The medium, as semantic context, of the interactionpublic SNEdge(SNNode source, SNNode target, double edgeWeight, java.lang.String edgeLabel)
source
- The ConsumerAgent from whom the interaction stemstarget
- The ConsumerAgent addressed by the interactionedgeWeight
- The strength of the interaction described by the edgeedgeLabel
- A human readible label for the interactionpublic SNEdge(SNNode source, SNNode target, double edgeWeight)
source
- The ConsumerAgent from whom the interaction stemstarget
- The ConsumerAgent addressed by the interactionedgeWeight
- The strength of the interaction described by the edgepublic SNNode getSource()
public SNNode getTarget()
public double getEdgeWeight()
public void setEdgeWeight(double edgeWeight)
public java.lang.String getEdgeLabel()
public SocialGraph.EDGEMEDIUM getMedium()