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.
Rest
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);}
Generated using TypeDoc
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.