When passed an agent object, returns the other agent.
Parameters
agent — Agent, required
The agent whose partner to return. Will raise a
ValueError
ifagent
is not one of the vertices.
Return Value — Agent
The partner agent.
When passed an agent object, returns the other agent.
agent — Agent, required
The agent whose partner to return. Will raise a ValueError
if agent
is not one of the vertices.
The partner agent.
Notes and Examples