Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vertex positions argument to cage topologies. #513

Merged
merged 44 commits into from
Sep 26, 2023

Conversation

andrewtarzia
Copy link
Collaborator

Requested Reviewers: @lukasturcani

This PR will add a vertex_positions argument to cage topology graphs. This allows the users to overwrite the scaling and positioning of any vertex (using a similar dict[int: position] format as the vertex_alignments arguments).

It will not work for OnePlusOne graph currently because of strict edge positioning.

Indeed. some choices in the code changes stem from me trying to avoid editing code outside of the cage namespace.

A few type hints were added too on any file I edited. Although, the tests will currently fail!

I have added tests for a few cage graphs, but fundamentally it is hard to test the success or failure of this except for consistency, which I believe is working.

Signed-off-by: andrewtarzia <andrew.tarzia@gmail.com>
Signed-off-by: andrewtarzia <andrew.tarzia@gmail.com>
Signed-off-by: andrewtarzia <andrew.tarzia@gmail.com>
Signed-off-by: andrewtarzia <andrew.tarzia@gmail.com>
Signed-off-by: andrewtarzia <andrew.tarzia@gmail.com>
Signed-off-by: andrewtarzia <andrew.tarzia@gmail.com>
Signed-off-by: andrewtarzia <andrew.tarzia@gmail.com>
Signed-off-by: andrewtarzia <andrew.tarzia@gmail.com>
Signed-off-by: andrewtarzia <andrew.tarzia@gmail.com>
Signed-off-by: andrewtarzia <andrew.tarzia@gmail.com>
Signed-off-by: andrewtarzia <andrew.tarzia@gmail.com>
Signed-off-by: andrewtarzia <andrew.tarzia@gmail.com>
Signed-off-by: andrewtarzia <andrew.tarzia@gmail.com>
Signed-off-by: andrewtarzia <andrew.tarzia@gmail.com>
Signed-off-by: andrewtarzia <andrew.tarzia@gmail.com>
Signed-off-by: andrewtarzia <andrew.tarzia@gmail.com>
Signed-off-by: andrewtarzia <andrew.tarzia@gmail.com>
Signed-off-by: andrewtarzia <andrew.tarzia@gmail.com>
Signed-off-by: andrewtarzia <andrew.tarzia@gmail.com>
Signed-off-by: andrewtarzia <andrew.tarzia@gmail.com>
Signed-off-by: andrewtarzia <andrew.tarzia@gmail.com>
Signed-off-by: andrewtarzia <andrew.tarzia@gmail.com>
@andrewtarzia andrewtarzia marked this pull request as ready for review August 1, 2023 08:53
@andrewtarzia
Copy link
Collaborator Author

This PR is ready for review, but there are some mypy errors that I will need assistance to fix.

@andrewtarzia
Copy link
Collaborator Author

This PR is now ready, awaiting a fix to the RTD issue.

@lukasturcani lukasturcani merged commit 5dca2b9 into lukasturcani:master Sep 26, 2023
8 checks passed
@andrewtarzia andrewtarzia deleted the add-vertex-positions branch September 26, 2023 09:33
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.

None yet

2 participants