|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmauda.plugin.fibheap.FibNodeDS
public class FibNodeDS
| Constructor Summary | |
|---|---|
FibNodeDS(int key)
Creates a new node with the specified key. |
|
| Method Summary | |
|---|---|
void |
addChild(FibNodeDS newChild)
Links another node N to this one. |
java.lang.Object |
clone()
|
void |
cut(FibNodeDS target)
Cuts this node off its parent and joins with target |
void |
delete()
Deletes this node from the root list. |
FibNodeDS |
getChildNode()
|
int |
getDepth()
|
int |
getKey()
|
FibNodeDS |
getLeftSibling()
|
FibNodeDS |
getParentNode()
Returns the (logical) parent FibNode of this node. |
int |
getRank()
|
FibNodeDS |
getRightSibling()
|
FibNodeDS |
getRoot()
|
FibNodeDS |
getSibling()
Used for child-sibling format of trees. |
int |
getTreeDepth()
|
int |
getTreeSize()
|
int |
getTreeWidth()
|
boolean |
hasChildren()
|
boolean |
isMarked()
|
boolean |
isRoot()
|
void |
join(FibNodeDS other,
boolean spaceNeeded)
Joins another node list to the sibling list of this one. |
void |
mark()
Marks this node. |
void |
setKey(int k)
Sets the key of this node to the specified value. |
void |
unmark()
Un-marks (removes mark from) this node. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FibNodeDS(int key)
key - the key for this node| Method Detail |
|---|
public FibNodeDS getParentNode()
public FibNodeDS getChildNode()
public FibNodeDS getSibling()
public FibNodeDS getRightSibling()
public FibNodeDS getLeftSibling()
public int getRank()
public int getKey()
public void setKey(int k)
k - the new keypublic boolean isRoot()
public boolean hasChildren()
public boolean isMarked()
public void mark()
public void unmark()
public void addChild(FibNodeDS newChild)
newChild - the node to be addedpublic void cut(FibNodeDS target)
target - the node where this one is attached
public void join(FibNodeDS other,
boolean spaceNeeded)
other - node of the list to joinspaceNeeded - true if additional space is neededpublic void delete()
public int getTreeWidth()
public int getTreeDepth()
public int getTreeSize()
public int getDepth()
public FibNodeDS getRoot()
public java.lang.Object clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||