answered 5 years ago
Do
import sage.all from sage.graphs.graph import Graph
The import.all does some important initialization steps.
import.all