setzer22 / egui_node_graph

Build your node graph applications in Rust, using egui
MIT License
718 stars 134 forks source link

Easy way to create pre-existing graph state? #102

Open seanmajorpayne opened 1 year ago

seanmajorpayne commented 1 year ago

Is there an easy way to create a graph state before running the application, either by loading from a file or just writing code. The example doesn't provide a clear way to just populate nodes from the outset (rather than drawing).

seanmajorpayne commented 1 year ago

I've more or less solved this by creating the graphs in a program and adding a save button which uses serde to serialize everything so it can be reloaded. If there is a better way let me know, if not feel free to close.