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

dagre: improve inter-container connections #1011

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

alixander
Copy link
Collaborator

before, we were setting all connections between containers to be the first child of the container.

But this often led to awkward placements on the side, since the rank would be calculated to equal a child.

Instead, if the source is a container, we get the tail of the longest edge chain. if the dst is a container, we get the first head.

Screen Shot 2023-03-09 at 7 41 01 PM

@alixander alixander merged commit e02f1c3 into terrastruct:master Mar 10, 2023
@alixander alixander deleted the dagre-rank branch March 10, 2023 03:49
@alixander
Copy link
Collaborator Author

cc @gavin-ts the dagre man

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