|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--id3.CatGraph
|
+--id3.RootedCatGraph
RootedCatGraph instances have a specific root node. All nodes in RootedCatGraphs should be reachable from the root.
| Fields inherited from class id3.CatGraph |
cGraph,
defaultDistDisp,
distDispHelp,
logOptions |
| Constructor Summary | |
RootedCatGraph(boolean isGraphSparse)
Constructor. |
|
RootedCatGraph(CGraph grph,
boolean isGraphSparse)
Constructor. |
|
| Method Summary | |
void |
display(boolean hasNodeLosses,
boolean hasLossMatrix,
java.io.Writer stream,
DisplayPref dp)
Displays the root, as well as CatGraph.display(). |
Node |
get_root()
If the root has been set, returns the root. |
Node |
get_root(boolean abortOnNoRoot)
If the root has been set, returns the root. |
int |
num_nontrivial_leaves()
The number of non-trivial leaves in the CatGraph. |
int |
num_nontrivial_leaves(Node fromRoot)
The number of non-trivial leaves in the CatGraph. |
int |
num_nontrivial_nodes()
The number of non-trivial nodes in the CatGraph. |
int |
num_nontrivial_nodes(Node fromRoot)
The number of non-trivial nodes in the CatGraph. |
void |
set_root(Node node)
Sets the root of the RootedCatGraph. |
void |
set_used_attr(boolean[] usedAttr)
Sets the attributes used. |
boolean |
trivial_edge(Edge e)
Check if an edge is trivial. |
| Methods inherited from class id3.CatGraph |
check_node_in_graph,
connect,
convertToDotFormat,
create_node,
get_categorizer,
get_graph,
get_log_level,
get_log_options,
get_log_stream,
is_sparse,
num_attr,
num_children,
num_leaves,
num_nodes,
process_DotGraph_display,
process_DotPostscript_display,
set_log_level,
set_log_options,
set_log_prefixes,
set_log_stream |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public RootedCatGraph(boolean isGraphSparse)
isGraphSparse - TRUE if the graph is sparse.
public RootedCatGraph(CGraph grph,
boolean isGraphSparse)
grph - The graph to be assigned to this RootedCatGraph.isGraphSparse - TRUE if the graph is sparse.| Method Detail |
public int num_nontrivial_nodes()
public int num_nontrivial_nodes(Node fromRoot)
fromRoot - The node to use as the root in searching for nodes.public int num_nontrivial_leaves()
public int num_nontrivial_leaves(Node fromRoot)
fromRoot - The node to use as root in searching for leaves.public boolean trivial_edge(Edge e)
e - The edge to be checked.public void set_root(Node node)
node - The new root node.public Node get_root()
public Node get_root(boolean abortOnNoRoot)
abortOnNoRoot - TRUE if aborting should occur when there is no root, FALSE if the method returns
null if there is no root node set.public void set_used_attr(boolean[] usedAttr)
usedAttr - An array indicating used attributes. Used attributes are indicated with TRUE
values in their index numbers. Unused attributes are indicated with FALSE values.
public void display(boolean hasNodeLosses,
boolean hasLossMatrix,
java.io.Writer stream,
DisplayPref dp)
hasNodeLosses - TRUE if node loss values have been set.hasLossMatrix - TRUE if loss matrix has been set.stream - The Writer to be displayed to.dp - The display preferences.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||