public class Edge
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
density
Edge density =
weight / (startNode.weight*endNode.weight) . |
Node |
endNode
End node.
|
Node |
startNode
Start node.
|
double |
weight
Edge weight.
|
Constructor and Description |
---|
Edge(Node startNode,
Node endNode,
double weight)
Initializes the attributes.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Returns a string representation of the object.
|