Hi everyone , I am making a concept map and wants to control the link distance dynamically(i.e suppose i have two nodes like node A ,Node B and have a link between nodes. so i think link distance should be 10 or whatever i want. )
You’ll need to control the distance between those two nodes, then. If you are using ForceDirectedLayout, the ForceDirectedLayout.defaultSpringLength does influence how long the links might be, but springs are still stretchy, so there is no guarantee that each link will keep the desired length.
Furthermore it is easy to have graphs where certain link lengths are impossible in a Cartesian space.