d3-dag
    Preparing search index...

    Function zherebko

    • create a new Zherebko with default settings

      This layout creates a simple topological layout. It doesn't support behavior beyond the layout defaults of Zherebko#rank, Zherebko#nodeSize, Zherebko#gap, and Zherebko#tweaks.

      Self loops take lanes like other links, holding them only at their node, so each of a node's loops gets its own lane. They're drawn like sugiyama's and grid's: each leaves below its node's center, runs up its lane, and comes back in above, nested one inside the next.

      zherebko example

      Parameters

      • ...args: never[]

      Returns DefaultZherebko

      const graph: Graph = ...
      const layout = zherebko();
      const { width, height } = layout(graph);
      for (const node of graph.nodes()) {
      console.log(node.x, node.y);
      }