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

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: visjs.org , 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: Expose all vis.js config settings for override · Issue #36 · neo4j-contrib/neovis.js · GitHub

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: GitHub - neo4j-contrib/neovis.js: Neo4j + vis.js = neovis.js. Graph visualizations in the browser with data from Neo4j.

2 Likes