Skip to content

fix: add structural graph validation before type inference#188

Merged
siddiquifaras merged 2 commits into
neuromorphs:mainfrom
siddiquifaras:fix/structural-validation
Mar 9, 2026
Merged

fix: add structural graph validation before type inference#188
siddiquifaras merged 2 commits into
neuromorphs:mainfrom
siddiquifaras:fix/structural-validation

Conversation

@siddiquifaras

Copy link
Copy Markdown
Collaborator

Adds validate_structure() to catch dangling edges and duplicate edges at the start of infer_types(). Previously these surfaced as confusing type inference failures deep in the traversal. Now they produce clear error messages naming the bad edge and listing available nodes.

Adds validate_structure() to catch dangling edges and duplicate edges
at the start of infer_types(). Previously these surfaced as confusing
type inference failures deep in the traversal. Now they produce clear
error messages naming the bad edge and listing available nodes.

@Jegp Jegp left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice work. The code looks clean and you added tests. Thanks!

@siddiquifaras

Copy link
Copy Markdown
Collaborator Author

Whoops, a check failed... I'll have a look at fixing that

@siddiquifaras siddiquifaras merged commit cf6368b into neuromorphs:main Mar 9, 2026
6 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.

2 participants