Better labeling for graphs