ENH: getCentroids function for displaying simple networks