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

Feature request: Directed edges (with curve) #3

Open
ulfaslak opened this issue Sep 17, 2018 · 8 comments
Open

Feature request: Directed edges (with curve) #3

ulfaslak opened this issue Sep 17, 2018 · 8 comments

Comments

@ulfaslak
Copy link
Owner

No description provided.

@ulfaslak ulfaslak mentioned this issue Apr 10, 2019
@benmaier
Copy link
Contributor

started experimenting with that here:

https://github.com/benmaier/curved-edges

@ulfaslak
Copy link
Owner Author

Neat! Doesn't look like it would be too hard to implement. Don't have time to look into it right now, but what would be reeeeeally cool (and probably look better) is edge bundling. Seems like d3 has an API for this.

@benmaier
Copy link
Contributor

don't know exactly how you would like to apply edge bundling but I'm actually quite happy with this now:

http://benmaier.org/curved-edges/

edges are straight by default and only curved when two nodes both point to each other. Arrow heads are properly drawn, too. (wiggle around a bit and play around with the parameters)

@benmaier
Copy link
Contributor

I've rewritten my code for easy usage and think it'd be neat to apply now.

https://github.com/benmaier/curved-edges

what do you think? :)

@ulfaslak
Copy link
Owner Author

I think you should write your damn thesis, Ben!

Jokes it'll write itself. (jokes it wont :()

It's fucking awesome! You're welcome to integrate it, otherwise I'll do it sometime next week :(.

@benmaier
Copy link
Contributor

oh don't worry about integration yet, I think it'd be too much work currently -- We'd have to think about how to handle thresholding, how to redraw in matplotlib and how to design the whole process in Python. For the paper we don't really need it yet.

Yes. Thesis 🤒

@ulfaslak
Copy link
Owner Author

The way zoom works here is also very nice. I honestly can't remember why I implemented it the way I did, I think somehow I couldn't get it to work properly with canvas or something. But it's always annoyed me that I can't pan and zoom.

@benmaier
Copy link
Contributor

ha. just copied bostock's force-directed layout :S

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants