add_edge#

eclypse.policies.topology.add_edge(source, target, *, symmetric=False, strict=False, **assets)[source]#

Add an edge if both endpoints exist.

Parameters:
  • source (str) – Source node identifier.

  • target (str) – Target node identifier.

  • symmetric (bool) – Whether to add the symmetric edge too.

  • strict (bool) – Whether graph insertion should use strict duplicate checks.

  • assets (Any) – Edge assets passed to the graph.

Returns:

Policy that adds the edge when endpoints exist.

Return type:

UpdatePolicy