Added Graph object and methods to convert between Dataset and Graph