network_join_edges

compas.datastructures.network_join_edges(network, key)[source]

Join the edges incidental on the given node, if there are exactly two incident edges.

Parameters
  • network (Network) – A network data structure.

  • key (hashable) – The node identifier.

Returns

None – The network is modified in place.

Notes

A new edge is created to replace the two joined edges. The attributes of the joined edges are not transferred to the new edge. Therefore, the new edge has only default edge attributes.