Package weka.gui.graphvisualizer
Class GraphNode
java.lang.Object
weka.gui.graphvisualizer.GraphNode
- All Implemented Interfaces:
GraphConstants
This class represents a node in the Graph.
- Version:
- $Revision: 8034 $ - 23 Apr 2003 - Initial version (Ashraf M. Kibriya)
- Author:
- Ashraf M. Kibriya (amk14@cs.waikato.ac.nz)
-
Field Summary
Modifier and TypeFieldDescriptionint[][]
The indices of nodes to which there are edges from this node, plus the type of edgeID and label for the nodeID and label for the nodeint
Type of node.String[]
The outcomes for the given nodeint[]
The indices of parent nodesdouble[][]
probability table for each outcome given outcomes of parents, if anyint
The x and y position of the nodeint
The x and y position of the nodeFields inherited from interface weka.gui.graphvisualizer.GraphConstants
DIRECTED, DOUBLE, NORMAL, PLURAL_DUMMY, REVERSED, SINGULAR_DUMMY
-
Constructor Summary
-
Method Summary
-
Field Details
-
ID
ID and label for the node -
lbl
ID and label for the node -
outcomes
The outcomes for the given node -
probs
public double[][] probsprobability table for each outcome given outcomes of parents, if any -
x
public int xThe x and y position of the node -
y
public int yThe x and y position of the node -
prnts
public int[] prntsThe indices of parent nodes -
edges
public int[][] edgesThe indices of nodes to which there are edges from this node, plus the type of edge -
nodeType
public int nodeTypeType of node. Default is Normal node type
-
-
Constructor Details
-
GraphNode
Constructor -
GraphNode
Constructor
-
-
Method Details