Skip to content

Choose edge color based on highest edge weight #288

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

Closed
jdanish opened this issue Jun 11, 2023 · 3 comments
Closed

Choose edge color based on highest edge weight #288

jdanish opened this issue Jun 11, 2023 · 3 comments
Assignees

Comments

@jdanish
Copy link
Collaborator

jdanish commented Jun 11, 2023

If there are two edges between the same two nodes:

a -> b (green, weight 1)
a -> b (blue, weight 2)

Then display a->b as blue because it has a higher weight for that color. Note of course there might be more than one edge of that type. As in:

a -> b (green, weight 1)
a -> b (blue, weight 2)
a -> b (green, weight 1)
a -> b (green, weight 1)

The above should display green.

Otherwise, pick the first one in the edge list so that it is not random and is consistent.

@benloh
Copy link
Collaborator

benloh commented Jun 11, 2023

I was actually in the middle of working on blending colors. And blending is rather problematic too because you're probably going to get a lot of muddy colors.

Do you prefer this approach of taking the higher weight color?

@jdanish
Copy link
Collaborator Author

jdanish commented Jun 11, 2023 via email

@benloh
Copy link
Collaborator

benloh commented Jun 12, 2023

Implemented with df9977e

@benloh benloh closed this as completed Jun 12, 2023
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

No branches or pull requests

2 participants