Infrastructure.add_edge#

Infrastructure.add_edge(u_of_edge, v_of_edge, symmetric=False, strict=False, **assets)[source]

Add an edge and invalidate the path cache.

Parameters:
  • u_of_edge (str) – The source node of the edge.

  • v_of_edge (str) – The target node of the edge.

  • symmetric (bool) – If True, add the edge in both directions.

  • strict (bool) – If True, raise an error if the edge already exists.

  • **assets – Additional edge assets.