On Monday, 18 June 2012 16:01:00 UTC+3, Nathann Cohen wrote: > > > So you are saying that only the generic Graph should be mutable, thats > > fine. Just make all derived FooGraph's immutable. > > WHAT ? O_o > > And what do you do with your graph once that is is immutable ? You > create a whole copy when you want to add an edge ? >
yes. If implemented right, an overhead is insignificant. > And if you have a GenericGraph on which you want to use a function > that is only available for perfect graphs you have to copy it again to > use PerfectGraph.something ? > No, you should not be able to apply to a generic graph a function which only works for perfect graphs. Otherwise it is asking for trouble. > And if your graphs has several properties at once and you want to use > one method of each... One graph per propety ? O_O;;;; > > That's going a bit far just to shorten the length of our files O_o;;;; > > Nathann > -- 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