Improve representation of graph