more sophisticated graph format