private void markNode(Node node, int level, Edge parent) { layerCount = Math.max(layerCount, level); node.putWeakly(NODE_INFO, new NodeInfo(level, parent)); }
protected void setUp() { this.n = g.newNodes(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); this.root = n[0]; this.path = root.asPath(); }
private NodeInfo getNodeInfo(Node node) { Args.notNull(node); return (NodeInfo) node.get(NODE_INFO); }