Skip to content

Fix empty and multigraph network exports and preserve edge data - #1547

Merged
SkBlaz merged 4 commits into
masterfrom
fix/joss-empty-network-export
Oct 8, 2026
Merged

SkBlaz merged 4 commits into
masterfrom
fix/joss-empty-network-export

Conversation

@SkBlaz

@SkBlaz SkBlaz commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner

The I/O bridge crashes on empty graphs, parallel edges, and simple NetworkX graphs. It also discards edge keys and reads the first edge’s attributes for every parallel edge.

Discover layers without visualization layouts, export each edge’s own key/data, and restore those keys on import. Repair the roundtrip test helper’s array comparison and keyed edge lookups so it can validate these exports.

Validation: 242 tests passed, 3 skipped across I/O, roundtrips, regressions, golden paths, empty networks, and null models.

CI caveat: existing workflows suppress pytest failures; the focused validation above was run directly.

@SkBlaz SkBlaz changed the title Handle empty network exports without generating layouts Fix empty and multigraph network exports and preserve edge data Oct 8, 2026
@SkBlaz
SkBlaz merged commit 80dfd6f into master Oct 8, 2026
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant