1 | initial version |
Let your file contain this instead:
from sage.graphs.graph_generators import graphs
graphs.HeawoodGraph().plot().show()
2 | No.2 Revision |
If you don't want to add any import statement, rename your file to test.sage
.
Let your file contain this:
graphs.HeawoodGraph().plot().show()
If you want to keep the file as .py
you will need the import statements.
In this instead:case:
from sage.graphs.graph_generators import graphs
graphs.HeawoodGraph().plot().show()
Note that the import statements are easy to figure out with the dedicated command.
sage: import_statements('graphs')
from sage.graphs.graph_generators import graphs