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,
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
>
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)
>
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,