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

About weighted graph support. #39

Open
frank-zsy opened this issue Aug 10, 2021 · 1 comment
Open

About weighted graph support. #39

frank-zsy opened this issue Aug 10, 2021 · 1 comment

Comments

@frank-zsy
Copy link

frank-zsy commented Aug 10, 2021

Hello, lots of thanks for your great work on graph in js.

Here is question I've encountered in using these awesome projects. I am using pm to visualize some GitHub projects networks and it works fine right now but I need link weight support from the layout generation method.

I am using ngraph.offline.layout right now and I looked into the projects and I found that actually the physical simulator supports link weight/length in spring force calculation. But as this project is the basic data structure of ngraph and the type of addLink method only supports fromId, toId and data for custom data store.

Right now I need to do this as a work around:

(addLink(fromId, toId) as any).length = l;

Should I modify the interface to let users know that link length is supported already?

Thank you for your awesome work again~

@heynest
Copy link

heynest commented Jul 19, 2022

I am also very interested in that...

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