Basic Graph class, still untested.