Add DOT import - #377
Merged
Merged
Conversation
mattkjames7
marked this pull request as ready for review
February 27, 2026 17:09
mattkjames7
requested review from
Josipmrden,
antejavor,
as51340 and
katarinasupe
as code owners
February 27, 2026 17:09
Contributor
Author
|
@cursor review |
Co-authored-by: Dr Matt James <mattkjames7@users.noreply.github.com>
Co-authored-by: Dr Matt James <mattkjames7@users.noreply.github.com>
Josipmrden
approved these changes
Mar 2, 2026
antejavor
approved these changes
Mar 2, 2026
Co-authored-by: Dr Matt James <mattkjames7@users.noreply.github.com>
Co-authored-by: Dr Matt James <mattkjames7@users.noreply.github.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added ability to import DOT files or a string containing DOT code, e.g.:
Pull request type
Please delete options that are not relevant.
Checklist:
######################################
Reviewer checklist (the reviewer checks this part)
######################################
Note
Medium Risk
Adds a new DOT parsing/import path (via optional
pydot) with non-trivial attribute normalization and ID generation, plus CI dependency-install changes that could affect test coverage/compatibility.Overview
Adds DOT graph import support to
GraphImporter(NetworkX mode) via newtranslate_dot_file()/translate_dot_data()APIs backed by optionalpydot, converting DOT graphs into NetworkX and enriching nodes/edges with stable IDs, sequences, sanitized/flattenedattributes_*properties, andattributes_json.Introduces a new
dotextra (and includes it inall) inpyproject.toml, updates CI workflows to install explicit extras (includingdot) instead of--all-extras, adjusts the TF-GNN install task to also installtf-keras, and adds docs + tests covering DOT import and normalization edge cases (key collisions, multiedges, file/data parsing).Written by Cursor Bugbot for commit 0e76e7e. This will update automatically on new commits. Configure here.