On Wed, Nov 24, 2010 at 2:28 AM, Nathann Cohen <nathann.co...@gmail.com> wrote:
> Hello everybody !!!
>
> Working on Minh's patches for new graph generators, I had to create
> Dihedral groups, which took me more than.... half a second. Which mean
> it can be improved :-D
>
> More seriously, the way I found to create them was to use the
> DihedralGroup() method, which one does not have to import first. It is
> nice, but it also means that I still do not know how to list all the
> group Sage knows how to build.. Well, for graphs and words we already
> have something nice :
>
> We create a graph/word with the Graph/Word constructor, which appears
> in the namespace. If we omit the upper case, we have a graphs/words
> object, whose methods are the different constructors of graphs/words.
> So graphs.<tab>/words.<tab> gives you the list of all constructors,
> which is the best way to find one quickly. What about doing the same
> with groups, or finding a common way to organise this ? :-)

sage.groups.all.<tab>

> Nathann
>
> P.S. (if anybody has any smart idea about how to deal with classes
> having *far too many* different methods, I am also very interested.
> Something will have to be decided soon for the Graph class anyway...
> :-/ )

EllipticCurves over the rational numbers had far too many methods, but
many were really for objects attached to the elliptic curve.  So we
made those separate objects and moved the methods there.  This may
make no sense for Graphs.

>
> --
> To post to this group, send an email to sage-devel@googlegroups.com
> To unsubscribe from this group, send an email to 
> sage-devel+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to