Returns a list of direct connections with another agent. Does not indicate indirect connections.
Note that the method name is capitalized, to avoid a collision with the Python with
keyword.
Parameters
partner — Agent, required
The agent to check connections against
kind — str, optional
The kind of connection to test for. Set
kind=None
to return a list of connections of all types.Default value: 'edge'
Return Value — list[Edge]
A list of Edge objects indicating connections in either direction between the two agents. Returns an empty list if there are no edges between the two agents.
Notes and Examples