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}︡
![]() | 1 | initial version |
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}︡
![]() | 2 | None |
dia = DiGraph({'x0':{'x1':(1, -1),'y1':(1, -1),'x2':(1, -1)},'y2':{'x0':(1, -1),'x1':(1, -1)}})
diaout = dia.neighbors_out('x0');diaoutdia.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}︡
![]() | 3 | None |
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}︡
![]() | 4 | None |
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}︡
![]() | 5 | None |
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}︡
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.