setzer22 / egui_node_graph

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

Feature request - allow labeling of edges #97

Closed dmyyy closed 1 year ago

dmyyy commented 1 year ago

I want to render graphs using egui_node_graph - it would be helpful if egui_node_graph supported edge labeling/properties/directions out of the box

kamirr commented 1 year ago

Rendering graphs isn't the target use-case of egui_node_graph. This library is fundamentally a graph editor, most suited for describing computation. If you wish to render an arbitrary DAG with some labels I'd look elsewhere, unless I'm misunderstanding your intent.

Ps. attaching stuff to connections has been on my mind for a while, but I haven't figured it out conceptually. I don't know whether other contributors are considering adding this feature, but I wouldn't hold my breath.

dmyyy commented 1 year ago

Thanks for the quick response! I figured the use-case was a little bit different (but was looking into whether or not it could be repurposed for my project - figured it couldn't hurt to ask)