Ask Your Question

Revision history [back]

I want product of the outgoing vertices as product of variables but it gives nonint type erros

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)

TypeError: can't multiply sequence by non-int of type 'str'\n"}︡{"done":true}︡

click to hide/show revision 2
None

I want product of the outgoing vertices as product of variables but it gives nonint type erros

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

dia.neighbors_out('x0');diaout

prod(p for p in diaout)

diaout)

TypeError: can't multiply sequence by non-int of type 'str'\n"}︡{"done":true}︡

'str'\n"}︡{"done":true}︡
click to hide/show revision 3
None

I want product of the outgoing vertices as product of variables but it gives nonint type erros

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)

TypeError: can't multiply sequence by non-int of type 'str'\n"}︡{"done":true}︡
click to hide/show revision 4
None

I want product of the outgoing vertices as product of variables but it gives nonint type erros

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)

TypeError: can't multiply sequence by non-int of type 'str'\n"}︡{"done":true}︡
click to hide/show revision 5
None

I want product of the outgoing vertices as product of variables but it gives nonint type erros

nonint error types:

dia = DiGraph({'x0':{'x1':(1, -1),'y1':(1, -1),'x2':(1, -1)},'y2':{'x0':(1, -1),'x1':(1, -1)}})

-1)}})
diaout = dia.neighbors_out('x0');diaout

prod(p for p in diaout)

TypeError: can't multiply sequence by non-int of type 'str'\n"}︡{"done":true}︡