sentence: typically , spring - like attractive forces based on hooke 's law are used to attract pairs of endpoints of the graph 's edges towards each other , while simultaneously repulsive forces like those of electrically charged particles based on coulomb 's law are used to separate all pairs of nodes .