public class mxUnionFind.Node extends Object
Modifier and Type | Field and Description |
---|---|
protected mxUnionFind.Node |
parent
Reference to the parent node.
|
protected int |
size
The size of the tree.
|
Constructor and Description |
---|
Node() |
Modifier and Type | Method and Description |
---|---|
mxUnionFind.Node |
getParent() |
int |
getSize() |
void |
setParent(mxUnionFind.Node parent) |
void |
setSize(int size) |
protected mxUnionFind.Node parent
protected int size
public mxUnionFind.Node getParent()
public void setParent(mxUnionFind.Node parent)
parent
- The parent node to set.public int getSize()
public void setSize(int size)
size
- The size to set.Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.