| 1 | initial version |
In such a case you can inspect the source code repository, which is under version control.
One way to do that is at GitHub, where a copy of the version controlled repository exists.
Since the import was
from sage.graphs.graph_plot import _circle_embedding
one can visit
and see the file
The "History" button reveals commits that changed this file.
The last of those is "trac #22050: move methods to generic_graph.py and update usage"
and by clicking it you can see how the usage of _circle_embedding has evolved.
In particular, _circle_embedding is now a method you can apply to any graph directly
without a need to import it.
For example, instead of doing:
sage: g = Graph('HKN?Yeb')
sage: from sage.graphs.graph_plot import _circle_embedding
sage: _circle_embedding(g, [1, 2, 4, 3, 0, 5])
the usage is now more direct, without import:
sage: g = Graph('HKN?Yeb')
sage: g._circle_embedding([1, 2, 4, 3, 0, 5])
Note that functions or methods starting with a single underscore _ are
"private methods" and there is not much guarantee on them, including
that they will still exist, or stay the same, or stay in the same place.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.