Graph representation

I believe this is related to the topic in the thread below. Please avoid opening multiple threads for the same issue.