public class Node
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
name
Node name.
|
double |
weight
Node weight.
|
Constructor and Description |
---|
Node(java.lang.String name,
double weight)
Initializes the attributes.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Returns a string representation of the object.
|