public class JGraphUnionFind.Node
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected JGraphUnionFind.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 |
---|---|
JGraphUnionFind.Node |
getParent() |
int |
getSize() |
void |
setParent(JGraphUnionFind.Node parent) |
void |
setSize(int size) |
protected JGraphUnionFind.Node parent
protected int size
public JGraphUnionFind.Node getParent()
public void setParent(JGraphUnionFind.Node parent)
parent
- the parent node to setpublic int getSize()
public void setSize(int size)
size
- The size to set.Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.