#19517: Graphs: canonical_label() and return_graph -parameter
--------------------------------+-------------------------
       Reporter:  jmantysalo    |        Owner:
           Type:  defect        |       Status:  new
       Priority:  major         |    Milestone:  sage-6.10
      Component:  graph theory  |   Resolution:
       Keywords:                |    Merged in:
        Authors:                |    Reviewers:
Report Upstream:  N/A           |  Work issues:
         Branch:                |       Commit:
   Dependencies:                |     Stopgaps:
--------------------------------+-------------------------

Comment (by jmantysalo):

 There is something strange with `bliss` installation, see
 https://groups.google.com/forum/#!topic/sage-devel/_1OYNuVNltM

 `return_graph` is not converse of `inplace`. I guess. It is badly
 documented. What is the meaning of it's output? A list of pairs somehow...
 Try

 {{{
 G = graphs.PetersenGraph()
 G.relabel(lambda x: chr(ord('a')+x))
 G.canonical_label(return_graph=False)
 }}}

 And why it deletes vertex positioning contraty to `relabel`? Try for
 example

 {{{
 G = graphs.PetersenGraph()
 G.relabel(lambda x: chr(ord('a')+x))
 G.show()
 G = G.canonical_label()
 G.canonical_label().show()
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/19517#comment:2>
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.

Reply via email to