|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.gui.graphvisualizer.GraphNode
public class GraphNode
This class represents a node in the Graph.
| Field Summary | |
|---|---|
int[][] |
edges
The indices of nodes to which there are edges from this node, plus the type of edge |
String |
ID
ID and label for the node |
String |
lbl
ID and label for the node |
int |
nodeType
Type of node. |
String[] |
outcomes
The outcomes for the given node |
int[] |
prnts
The indices of parent nodes |
double[][] |
probs
probability table for each outcome given outcomes of parents, if any |
int |
x
The x and y position of the node |
int |
y
The x and y position of the node |
| Fields inherited from interface weka.gui.graphvisualizer.GraphConstants |
|---|
DIRECTED, DOUBLE, NORMAL, PLURAL_DUMMY, REVERSED, SINGULAR_DUMMY |
| Constructor Summary | |
|---|---|
GraphNode(String id,
String label)
Constructor |
|
GraphNode(String id,
String label,
int type)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(Object n)
Returns true if passed in argument is an instance of GraphNode and is equal to this node. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String ID
public String lbl
public String[] outcomes
public double[][] probs
public int x
public int y
public int[] prnts
public int[][] edges
public int nodeType
| Constructor Detail |
|---|
public GraphNode(String id,
String label)
public GraphNode(String id,
String label,
int type)
| Method Detail |
|---|
public boolean equals(Object n)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||