Unified quality measures for clusterings, layouts, and orderings of graphs, and their application as software design criteria