Control Node size and spacing

I have a graph using a ForceDirectedLayout. The graph is based on the “Path Animation” sample.
The JSON data is constantly updated via SQL database. For the most part, it works well, but on occasion, after adding data that creates a new link between nodes, the nodes get super small and spread out. The graph goes from being readable with minimal scrolling, to basically unusable. What is the best way to control the spacing and size of the nodes?

You can try adjusting the ForceDirectedLayout.defaultSpringLength, defaultElectricalCharge, springLength function, and electricalCharge function to change the way nodes and links repel each other.

This topic might also be useful to you in case you want to override the functions: Clustering subtrees in force directed subtrees

Thank You, JHardy, I will work with your suggestion.