public void clear() { graph = new DelegateForest<V, Integer>(); edgeCount = 0; }
public void clear() { graph = new DelegateForest<V, Integer>(); edgeCount = 0; }
public BasicForest() { graph = new DelegateForest<V, Integer>(new DirectedOrderedSparseMultigraph<>()); }
public BasicForest() { graph = new DelegateForest<V, Integer>(new DirectedOrderedSparseMultigraph<>()); }
public DerivationTreeTransformer(DerivationTree t, Dimension d, boolean isAnchored) { this.isAnchored = isAnchored; anchorPoint = new Point2D.Double(0, 0); graph = t; DelegateForest<Node, DerivationTreeEdge> del = new DelegateForest<>(t); del.setRoot(t.root); del.setRoot(t.sourceRoot); root = t.root; sourceRoot = t.sourceRoot; Y_DIST = d.getHeight() / (2 * (1 + distanceToLeaf(root))); int leafCount = 0; for (Node n : t.getVertices()) { if (t.outDegree(n) == 0) leafCount++; } X_DIST = d.getWidth() / leafCount; treeLayout = new TreeLayout<>(del, (int) Math.round(X_DIST)); }
public TreeLayoutDemo() { graph = new DelegateForest<String,Integer>();
public L2RTreeLayoutDemo() { graph = new DelegateForest<String,Integer>();
public TreeCollapseDemo() { graph = new DelegateForest<String,Integer>();
g, new DelegateForest<MyNode, MyLink>(), DelegateTree.<MyNode, MyLink> getFactory(), wtTransformer);
graph = new DelegateForest<String,Integer>();
public BalloonLayoutDemo() { graph = new DelegateForest<String,Integer>();
new DelegateForest<String,Number>(), DelegateTree.<String,Number>getFactory(), Functions.<Double>constant(1.0));