-Xint to disable HotSpot
//TODO hybrid graph - api that supports undirected edges selectively.
Also, Hybrid(Hybrid, boolean sharing) constructor that enables
undirected info key sharing

//TODO HierarchicGraph: subgraphs should also be HierarchicGraphs
//TODO connected components --> create secondary graph per component
//TODO random trees generator
//TODO isAcyclic
//TODO isTree

//TODO graph predicates: "no node with degree 4". Traversals. Test
//dior8wse
//TODO: GraphHider as projection (duality!)
//TODO: easy node selections

//TODO algorithm abstraction
//TODO: could implement a separate VPoint (Vector point), for arbitrary dimensions, that can project to GPoint

//TODO: VIEW. Node->Shape, alla kai Node->Contains Point (gia e3ypno bypassing tou shape)

//TODO: master animation and events!

//TODO: connectedComponentFinder, tree


    //TODO: make tree
    /*
     * import from graph
     * node -> parent
     * cut
     * join
     * path
     * traverses (reuse visitors)
     * toGraph?
     *
     * keep nodes in LinkedList
     * mark nodes
     * unmark when removed
     * is this specifically for nodes??? why? Hmm! Break generality! Only for nodes! So to use paths!
     * 
     * asTree(graph)
     * count leaves?
     * special traverse that puts in a property the leaves? subclassable?
     * Well, traverse with visitors, with a filter that only allows nodes and edges that belong to this tree!
     *
     * Tree.addLeaf(Edge branch, Node leaf) branch.contains(leaf) && this.containsNode(branch.opposite(leaf))
     * && !branch.isSelfLoop()
     */



package gr.forth.ics.graph.tree;
//
//import gr.forth.ics.graph.InspectableGraph;
//import gr.forth.ics.graph.Node;
//import gr.forth.ics.util.Args;
//
////TODO: invalidating listener, path, xor, cut, n-ary, center, leaves, filter, distance from root
////getLeaves
////getPath to any node from root
////common ancestor through dfs time values (labeling)
//public class Tree {
//    private final InspectableGraph graph;
//    private final Node root;
//    
//    private Tree(InspectableGraph graph, Node root) {
//        //if ()
//        this.graph = graph;
//        this.root = root;
//    }
//    
//    public static Tree asTree(InspectableGraph graph, Node root) {
//        Args.isTrue("Root is not in graph", graph.containsNode(root));
//        return new Tree(graph, root);
//    }
//
//    public Object[] getUsedKeys() {
//        return null;
//    }
//    
////    private static class TreeDfs extends CycleCheckerDfs {
////        add level property? kids property? parent property?
////    }
//}
