#6858: [with patch, needs review] Cayley graph connecting set
--------------------------+-------------------------------------------------
Reporter: rlm | Owner: rlm
Type: defect | Status: new
Priority: major | Milestone: sage-4.1.2
Component: graph theory | Keywords:
Reviewer: | Author: Robert Miller
Merged: |
--------------------------+-------------------------------------------------
Comment(by ncohen):
Hmmm.. I may have done something wrong, but here is what I tried
{{{
sage: g=PermutationGroup([(i+1,j+1) for i in range(5) for j in range(5) if
j!=i])
sage: (1,2) in g
True
sage: (2,3) in g
True
sage: g.cayley_graph(connecting_set=[(1,2),(2,3)])
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
/user/ncohen/home/.sage/temp/rebelote.inria.fr/4013/_user_ncohen_home__sage_init_sage_0.py
in <module>()
/usr/local/sage/local/lib/python2.6/site-packages/sage/groups/group.so in
sage.groups.group.FiniteGroup.cayley_graph (sage/groups/group.c:2157)()
/usr/local/sage/local/lib/python2.6/site-
packages/sage/structure/element.so in
sage.structure.element.MonoidElement.__mul__
(sage/structure/element.c:8537)()
TypeError: unsupported operand parent(s) for '*': 'Permutation Group with
generators [(4,5), (3,4), (3,5), (2,3), (2,4), (2,5), (1,2), (1,3), (1,4),
(1,5)]' and '<type 'tuple'>'
}}}
Even though it's apparent I know very few about groups in Sage as I had to
build S_n by enumerating generators ( I guess there is a command to do
that with only the cardinal ? ) ^^;
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6858#comment:1>
Sage <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---