In my network there are two kinds of edges: normal edges and repulsive edges. I want that when the network is visualized, the normal edges will, well, be normal, and the repulsive edges will make their nodes as far away as possible. Is there a way to do so?

For example in the below network all the red edges are repulsive, while the grey edges are normal. enter image description here

Vis.js has repulsion feature, but it seems to apply to all the edges in the network, not a type of edge. I'm looking for a library or standalone program can achieve that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.