|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectTree
public class Tree
| Method Summary | |
|---|---|
int |
getN()
|
void |
setDiags(IntPair[] diags)
|
void |
setFlips(IntPair[] flips)
|
void |
setupDraw(IntPair[] intNodes,
IntPair[] leaves,
IntPair[] intEdges,
IntPair[] leafEdges)
|
static Tree |
unhash(int n,
int code)
Return the tree with n internal vertices and having the given Catalan code (which must be between 0 and C(n), inclusive). |
static boolean |
validTree(Tree tree)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int getN()
public static boolean validTree(Tree tree)
public static Tree unhash(int n,
int code)
n - the node countcode - the Catalan codepublic void setDiags(IntPair[] diags)
public void setFlips(IntPair[] flips)
public void setupDraw(IntPair[] intNodes,
IntPair[] leaves,
IntPair[] intEdges,
IntPair[] leafEdges)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||