Function egui_graph::layout::layout

source ·
pub fn layout(
    nodes: impl IntoIterator<Item = (Id, Vec2)>,
    edges: impl IntoIterator<Item = (Id, Id)>,
    flow: Direction
) -> Layout
Expand description

Constructs a layout for a directed graph based on given edges and node sizes.

Returns a Layout object representing the positions of nodes in the graph.