Added a scaling factor to optimize the ratio of edge lengths and node sizes