Skip to main content

layout

Function layout 

Source
pub fn layout(nodes: Vec<GraphNode>, edges: Vec<GraphEdge>) -> GraphLayout
Expand description

Compute a force-directed layout for the given graph data. Returns positioned nodes and the original edges.