Re: [sage-combinat-devel] I want product of the outgoing vertices as product of variables but it gives nonint type erros

2017-02-01 Thread Biswajit Ransingh
Dear Nicolas , Thank you I shall be careful in writing in future. Sincerely Biswajit On Wednesday, 1 February 2017 19:54:11 UTC+5:30, Nicolas M. Thiery wrote: > >Dear Biswajit, > > On Wed, Feb 01, 2017 at 06:04:40AM -0800, Biswajit Ransingh wrote: > >dia = DiGraph({'x0':{'x1':(1,

Re: [sage-combinat-devel] I want product of the outgoing vertices as product of variables but it gives nonint type erros

2017-02-01 Thread Biswajit Ransingh
Dear Christian Stump, *Thank you.* *Sincerely* *Biswajit* On Wednesday, 1 February 2017 19:46:07 UTC+5:30, Christian Stump wrote: > > Dear Biswajit, > > it doesn't hurt opening a question with a friendly sentence. > > Anyway, as the output tells you, your graph vertices are labelled by >

Re: [sage-combinat-devel] I want product of the outgoing vertices as product of variables but it gives nonint type erros

2017-02-01 Thread Nicolas M. Thiery
Dear Biswajit, On Wed, Feb 01, 2017 at 06:04:40AM -0800, Biswajit Ransingh wrote: >dia = DiGraph({'x0':{'x1':(1, -1),'y1':(1, -1),'x2':(1, >-1)},'y2':{'x0':(1, -1),'x1':(1, -1)}}) >diaout = dia.neighbors_out('x0');diaout >prod(p for p in diaout) >

Re: [sage-combinat-devel] I want product of the outgoing vertices as product of variables but it gives nonint type erros

2017-02-01 Thread Christian Stump
Dear Biswajit, it doesn't hurt opening a question with a friendly sentence. Anyway, as the output tells you, your graph vertices are labelled by strings (namely "x0", "x1", ...) which you cannot multiply as the product of two strings is not defined here. If you want to use variables instead,