ericmjl / nxviz

Visualization Package for NetworkX
https://ericmjl.github.io/nxviz
MIT License
449 stars 86 forks source link

Add edge direction by source or target node color #670

Closed AlirezaTheH closed 2 years ago

AlirezaTheH commented 2 years ago

Hi @ericmjl, this PR adds edge direction feature discussed in #668. For example in high-level API circus, setting edge_color_by to "source_node_color" or "target_node_color", and setting node_color_by to some valid hashable will get us to this:

Figure_1

A detailed example also added to examples directory.

ericmjl commented 2 years ago

Once we're done with this PR, I'd like to invite you on as a collaborator. Would you be open to this?

AlirezaTheH commented 2 years ago

Once we're done with this PR, I'd like to invite you on as a collaborator. Would you be open to this?

Of course I would.

AlirezaTheH commented 2 years ago

Hi @ericmjl, the changes you requested have been added. 😅

ericmjl commented 2 years ago

Great work, @AlirezaH320! Thank you for handling this PR. :smile: I'm going to add you as a collaborator on the repo; please do the honors of hitting the big green button once all of the tests are complete!

AlirezaTheH commented 2 years ago

@ericmjl Thank you for inviting me. It's really an honor working with you. 🙏