Reference 〉 Hook

edgeInit(edgeEdge, kindstr, agent1Agent, agent2Agent)

Runs at the initialization of a new connection between two agents. Can be used to assign new properties to Edge objects.

Required Parameters

  • edge Edge

    The Edge object being initialized.

  • kind str

    The kind of edge being created.

  • agent1 Agent

    The first vertex of the edge.

  • agent2 Agent

    The second vertex of the edge.

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.