Reference 〉Function

Agent.edgesWith( Agent partner, str kind = 'edge' )

Returns a list of direct connections with another agent. Does not indicate indirect connections.

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

  1. Contribute a Note

    Your email address will not be published. Required fields are marked *

    You may use limited HTML for formatting. Please embed blocks of code in <pre><code> </code></pre> tags.