Here is an example of how you can change the link length based on auras - nodes, sharing at least one common aura would appear closer:
http://jsfiddle.net/89wjyLut/
Janis