public class mxUnionFind.Node
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected mxUnionFind.Node |
parent |
Reference to the parent node.
|
protected int |
size |
The size of the tree.
|
Constructor | Description |
---|---|
Node() |
Modifier and Type | Method | 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-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.