Skip to content

fix: honor empty node IDs in edge queries - #260

Open
Aschenbath wants to merge 3 commits into
dagrejs:masterfrom
Aschenbath:fix/empty-node-filters-20261125-42bb
Open

Aschenbath wants to merge 3 commits into
dagrejs:masterfrom
Aschenbath:fix/empty-node-filters-20261125-42bb

Conversation

@Aschenbath

@Aschenbath Aschenbath commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Filtering edges with an empty node ID currently returns every adjacent edge because "" is treated as an omitted filter. Treat only undefined as an omitted ID so inEdges, outEdges, and nodeEdges honor the requested endpoint in directed and undirected graphs.

Six regressions fail before the fix and pass afterward. Validation on Windows / Node 24.22.0: 286 tests, type checking, lint, and the build pass; built CJS and ESM exports pass separate consumer checks. The two distribution smoke tests are excluded from Jest because of the separately fixed Windows ESM-path problem in #258.

Prepared with OpenAI Codex assistance.

@Aschenbath Aschenbath changed the title fix: retain empty node identifiers when filtering graphs fix: honor empty node IDs in edge queries Nov 25, 2026
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