#16257: Unnatural syntax of G.relabel()
-------------------------+-------------------------------------------------
Reporter: | Owner:
ncohen | Status: positive_review
Type: | Milestone: sage-6.2
defect | Resolution:
Priority: major | Merged in:
Component: graph | Reviewers:
theory | Work issues:
Keywords: | Commit:
Authors: | b16403318006a27e6861558693ad8a76cc4ce4df
Nathann Cohen | Stopgaps:
Report Upstream: N/A |
Branch: |
u/ncohen/16257 |
Dependencies: |
-------------------------+-------------------------------------------------
Changes (by jpedro):
* status: needs_review => positive_review
Comment:
I've done the following instructions and checked that the reported
situation has been solved.
{{{#!python
sage: G = graphs.PetersenGraph()
sage: G.relabel( [1,2,3,4,5,6,7,8,9,10], inplace=True )
sage: G.relabel( [1,2,3,4,5,6,7,8,9,10], inplace=True )
sage: G.vertices()
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
sage: G.relabel( lambda i: i+1, inplace=True )
sage: G.vertices()
[2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
sage: G.relabel( [1,2,3,4,5,6,7,8,9,10], inplace=True )
sage: G.vertices()
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/16257#comment:4>
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.