On Mon, Jan 11, 2010 at 10:49:55AM -0800, Nick Alexander wrote: > I think I agree with this last sentiment. Why not have a > SetOfCliquesOfGraph object returned by G.cliques(), which is then > further interrogated? Ie, cliques = G.cliques(); > cliques.max_clique(), etc. This worked well with torsion subgroups > of elliptic curves and in a host of other places (class groups of > number fields, maximal orders of number fields).
Yes, and in the combinatorics code as well. Another thing to be taken into account is ease of inheritance. If I define a new class inheriting from Graph (a usual thing), then it should be easy to override this, this, and this method, while leaving everything else untouched. Flat makes that easier. Cheers, Nicolas -- Nicolas M. ThiƩry "Isil" <nthi...@users.sf.net> http://Nicolas.Thiery.name/
-- 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