I learned about this method from a series of Pixar-sponsored Kahn Academy videos. They showed the methodology for considering forces between a graph of nodes... spring forces with Hooke's law, and velocity-based damping forces. I've messed with it in 2D and 3D, and a couple different types of rendering for the 3D version. You can find out more in the articles below: