Hi Nathann,

Thank you! Wrapping DiGraph around seems to work.
I assume that it worked before without the DiGraph on
DynkinDiagrams since it was used in code for Stanley symmetric
functions by Steve Pon.

Thanks,

Anne

Nathann Cohen wrote:
Hello !!

I think t he problem just comes from the fact that DynkinDiagram(['C',
3,1]) is not just a DiGraph object but a.... DynkinDiagram object. I
expect it to inherit from DiGraph for its .subgraph method. Sadly,
this method is written both for Graph and DiGraph, and it created the
new object by calling the self.__class__ constructor, which works
nicely for Graph and DiGraphs, but not for your object as its
constructor method is not as general as Graph or DiGraph (and is
clearly not inherited from DiGraph's ) :-)

Did it ever work ?

In the meantime, you can try the following :

DiGraph(DynkinDiagram(['C',3,1])).subgraph([1])

Nathann

--
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-de...@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to