>> I have no clue how to write what you are describing. Graph.neighbors
>> would be a subobject, does that mean an independent class ? Wouldn't
>> this slow down the whole Graph class, as these functions are among  
>> the
>> most used ?  Here I feel that I do not know Python enough to  
>> help.. :-)
>
> That's probably for the best -- it was a pretty bad idea, and any
> implementation that one comes up with is probably going to be terrible
> in one way or another.  Don't do it.

I (and you?) did something similar for torsion subgroups of elliptic  
curves.  One can always break out the neighbours object, and then  
provide the original functions in terms of that new object.  That  
factors the code while preserving the rich interface.

Nick

--~--~---------~--~----~------------~-------~--~----~
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