secondWalk method

void secondWalk(
  1. Graph graph,
  2. Node node,
  3. double modifier
)

Implementation

void secondWalk(Graph graph, Node node, double modifier) {
  var nodeData = getNodeData(node)!;
  var depth = nodeData.depth;
  var vertical = isVertical();

  node.position = Offset((nodeData.prelim + modifier),
      (depth * (vertical ? minNodeHeight : minNodeWidth) + depth * configuration.levelSeparation).ceilToDouble());

  graph.successorsOf(node).forEach((w) {
    secondWalk(graph, w, modifier + nodeData.modifier);
  });
}