Ok, here are the problems with your code:
The getAdjacentList() function takes a tuple containing two integers as the argument. You are giving it a CyPlot instance. These things are a world apart as far as types go.
Secondly, you should probably assign the return value of getAdjacentList() to some name/variable, not? Otherwise the interpreter won't know what the name tCoords is referring to:
Because trying to unpack a data structure that doesn't exist will cause an exception.
Also make sure your indentation levels match up, because the code you posted doesn't look right.
Code:
getAdjacentList(pRome)
Secondly, you should probably assign the return value of getAdjacentList() to some name/variable, not? Otherwise the interpreter won't know what the name tCoords is referring to:
Code:
x, y = tCoords
Also make sure your indentation levels match up, because the code you posted doesn't look right.
Try commenting it out and you'll see that the interpreter can still recognize the name "gc". How can this be? (Lets see if you can figure it out. There is a lesson in here in any case.)
I never implemented anything like it in PyScenario - and thus far no one has requested such functionality...