renamed Graph to SimpleGraph