Such a script would be very welcome and a valuable addition to Graphviz. It would need to take into account node size, font width in points, node margin, etc. Maybe something in Python, or an ancillary tool in Graphviz. I know nothing about gvpr but maybe it would be up to the task.