blitzarx1 / egui_graphs

Interactive graph visualization widget for rust powered by egui and petgraph
https://docs.rs/crate/egui_graphs
MIT License
417 stars 30 forks source link

fix unwrap on missing edge endpoints #177

Closed XertroV closed 3 months ago

XertroV commented 9 months ago

fixes #166

blitzarx1 commented 3 months ago

Hi! Sorry for the late response.

I do not see a way this can happen in real example.

We are iterating by edge ids and getting edge endpoints by its id. There can't be an edge without endoints. If you encounter panic on exactly this unwrap, I think we need to dig into the reason, rather then fixing symptoms.