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.
const graph: Graph = ...const layout = zherebko();const { width, height } = layout(graph);for (const node of graph.nodes()) { console.log(node.x, node.y);} Copy
const graph: Graph = ...const layout = zherebko();const { width, height } = layout(graph);for (const node of graph.nodes()) { console.log(node.x, node.y);}
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.