FIX: node width for irregular node spacing

There was a problem when the nodes are irregularly spaced, e.g., as produced with `circular_layout` with node groups. The gaps between the groups were not taken into account, resulting in nodes that are too wide.