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

Layout p norm #121

Merged
merged 6 commits into from
Apr 1, 2020
Merged

Layout p norm #121

merged 6 commits into from
Apr 1, 2020

Conversation

stefanhannie
Copy link
Contributor

The p_norm layout algorithm is introduced.

  • It is a Kamada-Kawai inspired algorithm that drops some of the more graph drawing aspects of their algorithm and generalizes the distance function to the p-norm.

Stefan Hannie added 5 commits March 30, 2020 17:05
A Kamada-Kawai-like algorithm with a variable p-norm distance function.
Now also passing dim, center, scale as kwargs to layout callables.
test_dimension also changed as the behavior is slightly different now.
Layout.d changed to Layout.dim, documentation changes, split a test.
Copy link
Collaborator

@boothby boothby left a comment

Choose a reason for hiding this comment

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

Looks good overall, one lil typo

minorminer/layout/layout.py Outdated Show resolved Hide resolved
@boothby boothby merged commit d56ee52 into dwavesystems:master Apr 1, 2020
@stefanhannie stefanhannie deleted the layout-p_norm branch April 1, 2020 17:06
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