Improve hyper/graph partitioning code for console output