cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Neovis,relationship lenght

neovis, how to visualize relationship with a specific length of the relashionship between the nodes, i get nodes very close to each other

1 ACCEPTED SOLUTION

William_Lyon
Graph Fellow

The length of the relationships is determined by the results of a physics simulation for the force directed layout. The underlying vis.js library allows for overriding the relationship length determined by the physics simulation: http://visjs.org/docs/network/edges.html , however this is not exposed directly through neovis.js.

I've created an issue for exposing all vis.js configuration options through neovis.js, as this has become a common request. Please track the issue for updates on when this is implemented: https://github.com/neo4j-contrib/neovis.js/issues/36

One option you could try now is the hierarchical layout option, which would replace the force directed layout and may result in a more favorable layout for your dataset: https://github.com/neo4j-contrib/neovis.js#confighierarchical_layout

View solution in original post

1 REPLY 1

William_Lyon
Graph Fellow

The length of the relationships is determined by the results of a physics simulation for the force directed layout. The underlying vis.js library allows for overriding the relationship length determined by the physics simulation: http://visjs.org/docs/network/edges.html , however this is not exposed directly through neovis.js.

I've created an issue for exposing all vis.js configuration options through neovis.js, as this has become a common request. Please track the issue for updates on when this is implemented: https://github.com/neo4j-contrib/neovis.js/issues/36

One option you could try now is the hierarchical layout option, which would replace the force directed layout and may result in a more favorable layout for your dataset: https://github.com/neo4j-contrib/neovis.js#confighierarchical_layout