edgebundles.tree
Class VisualTree

public class VisualTree

Title: Visual Tree

Description: A class which stores the tree and its adjacency relations in a rich data structure which enables fast queries

It reads the hiearchical and adjacency relations from a data reader, and create the corresponding data structure upon contruction

Copyright: Copyright (c) 2007

Company:

Version:
1.0
Author:
not attributable
Constructor Detail

VisualTree

public VisualTree(edgebundles.io.DataReader dr)
constructing the tree from a data reader
Parameters:
dr - DataReader

Method Detail

getRoot

public edgebundles.tree.TreeNode getRoot()
the roots of the tree
Returns:
TreeNode

getNode

public edgebundles.tree.TreeNode getNode(int i)
the ith node in the tree (the nodes are partially ordered via an order which respects the hierarchy
Returns:
int

getNodesCount

public int getNodesCount()
the number of tree nodes
Returns:
int