Function egui_graphs::to_graph_custom

source ·
pub fn to_graph_custom<N: Clone, E: Clone, Ty: EdgeType, Ix: IndexType, Dn: DisplayNode<N, E, Ty, Ix>, De: DisplayEdge<N, E, Ty, Ix, Dn>>(
    g: &StableGraph<N, E, Ty, Ix>,
    node_transform: impl FnMut(NodeIndex<Ix>, &N) -> Node<N, E, Ty, Ix, Dn>,
    edge_transform: impl FnMut(EdgeIndex<Ix>, &E, usize) -> Edge<N, E, Ty, Ix, Dn, De>
) -> Graph<N, E, Ty, Ix, Dn, De>
Expand description

The same as to_graph, but allows to define custom transformation procedures for nodes and edges.