Improve API for Graph data object. Add ReferenceGraph class. Update documentation.