Creates a new
Edge object between the current agent and a new agent, for use in graphs and networks.
partner — Agent, required
The agent to which the current agent should be connected.
kind — str, optional
The type of connection being made. Can be used to create multiple non-conflicting networks.
Default value: 'edge'
direction — int|bool|Agent, optional
- If an
direction>0signifies an outbound edge from the agent,
direction<0creates in inbound edge to the agent, and
direction==0creates an undirected edge.
- If a
Truecreates an outbound link from the agent and
Falsecreates an undirected link.
- If an agent object, indicates which agent should be the endpoint, the other being the startpoint.
None, creates an undirected edge.
Default value: None
- If an
weight — num, optional
The weight of the connection.
Default value: 1
Return Value — Edge
The newly created