anvaka / ngraph.native

C++ implementation of force-based layout from ngraph
MIT License
51 stars 28 forks source link

Help to understand how precomputed the layout #13

Open vincenzopalazzo opened 4 years ago

vincenzopalazzo commented 4 years ago

Hi @anvaka,

Thanks for building it, I'm trying to understand how it works and I don't understand.

I'm building a big graph (some transaction Bitcoin) and I have to need to precompute the layout with this module but I don't understand how to work.

I have saved my graph inside the simple file and it has this form:

TO_NODE|INFORMATION_LINK|INFORMATION_LINK|INFORMATION_LINK|FROM_NODE

I want to build a wrapper of your module for creating the configuration to a string pattern, but I have need to help what is the corruptive value for the file labels.json for work the module

If I understand the labels.json with my example have this form:

['TO_NODE', 'FROM_NODE']

if I understand how I can insert the information for the link? if I don't undestend can you help me?

anvaka commented 4 years ago

The graph format is described here: https://github.com/anvaka/ngraph.tobinary

It is very dense representation of graph, optimized for transfer over the wire. It doesn't support link properties out of the box. You'd have to come up with your own mechanism to store those.

vincenzopalazzo commented 4 years ago

Thanks for your answer @anvaka,

So, if I understand the module ngraph.native work on the file of the result of the module ngraph.tobinary? right?

if I understand the passage for work the ngraph.native are: