#17104: IncidenceStructure.relabel() (no arguments)
-------------------------------------+-------------------------------------
Reporter: ncohen | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.4
Component: combinatorial | Resolution:
designs | Merged in:
Keywords: | Reviewers:
Authors: Nathann Cohen | Work issues:
Report Upstream: N/A | Commit:
Branch: | 3ade030d09adfd591c1a8f8bc18ddbe18fe5a43c
u/vdelecroix/17104 | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Changes (by vdelecroix):
* commit: 795cc45a9c7b320d326b48fb22e740cb40b93e75 =>
3ade030d09adfd591c1a8f8bc18ddbe18fe5a43c
* branch: u/ncohen/17104 => u/vdelecroix/17104
Comment:
Hello,
Compared with the possibilities from graph:
- what about a `inplace` argument?
- what about accepting lists as input. The following works with graphs
{{{
sage: G = Graphs(... whatever on [0,1,2,3] ...)
sage: G.relabel([2,0,1,3])
}}}
In the branch I updated (rebase over sage-4.6) I added a commit which do
these changes. I also added a nice test which illustrate the usefulness of
these additions. What do you think ?
Vincent
----
New commits:
||[http://git.sagemath.org/sage.git/commit/?id=c081fd0c4c6ae2051e92cd2e21c9815a9b04c685
c081fd0]||{{{trac #17104: IncidenceStructure.relabel() (no arguments)}}}||
||[http://git.sagemath.org/sage.git/commit/?id=3ade030d09adfd591c1a8f8bc18ddbe18fe5a43c
3ade030]||{{{trac #17104: allow list/tuple + add inplace arg}}}||
--
Ticket URL: <http://trac.sagemath.org/ticket/17104#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.