fix some docstrings and check if graph is not None when calling 'graphic methods', to avoid raising exceptions when graph is not initialized