public class GraphNode extends java.lang.Object implements GraphConstants
Modifier and Type | Field and Description |
---|---|
int[][] |
edges
The indices of nodes to which there are edges from this
node, plus the type of edge
|
java.lang.String |
ID
ID and label for the node
|
java.lang.String |
lbl
ID and label for the node
|
int |
nodeType
Type of node.
|
java.lang.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
|
DIRECTED, DOUBLE, NORMAL, PLURAL_DUMMY, REVERSED, SINGULAR_DUMMY
Constructor and Description |
---|
GraphNode(java.lang.String id,
java.lang.String label)
Constructor
|
GraphNode(java.lang.String id,
java.lang.String label,
int type)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object n)
Returns true if passed in argument is an instance
of GraphNode and is equal to this node.
|
public java.lang.String ID
public java.lang.String lbl
public java.lang.String[] outcomes
public double[][] probs
public int x
public int y
public int[] prnts
public int[][] edges
public int nodeType