Modifier and Type | Method and Description |
---|---|
void |
addChild(FibHeap.FibNode<T> x)
Adds the given node directly to the children list of this node.
|
double |
getPriority() |
T |
getValue() |
String |
toString() |
public FibNode(T value, double key)
public T getValue()
public double getPriority()
public void addChild(FibHeap.FibNode<T> x)
p
value for x
will be set automatically. The
degree
of this node will not be adjusted, and must be
incremented correctly by the callerx
- the node to add as a child of this node. Should be a
singular itemCopyright © 2017. All rights reserved.