#19517: Graphs: canonical_label() and return_graph -parameter
----------------------------+-----------------------------
Reporter: jmantysalo | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.10
Component: graph theory | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
----------------------------+-----------------------------
Several problems I noticed on `generic_graph.py`:
- Indentation in docstring for `return_graph` is wrong.
- That parameter seems to have no effect when `algorithm='sage'`:
{{{
sage: G = Graph({10: [20]})
sage: G.canonical_label(algorithm='sage', return_graph=False)
Graph on 2 vertices
sage: G.vertices()
[10, 20]
sage: G.canonical_label(algorithm='sage', return_graph=True)
Graph on 2 vertices
sage: G.vertices()
[10, 20]
}}}
- I installed bliss with `sage -i` and it seems to be fine. I got normal
messages from gcc and then `Successfully installed bliss-0.73`, and
`'bliss' in sage.misc.package.optional_packages()[0]` says `True`. But
still
{{{
sage: G.canonical_label(algorithm='bliss', return_graph=True)
---------------------------------------------------------------------------
ImportError Traceback (most recent call
last)
. . .
ImportError: You must install the 'bliss' package to run this command.
}}}
- Why the name of the parameter `return_graph` in this, but `inplace` in
all other functions?
--
Ticket URL: <http://trac.sagemath.org/ticket/19517>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.