network_split_edge

compas.datastructures.network_split_edge(network, u, v, t=0.5)[source]

Split and edge by inserting a node along its length.

Parameters
  • u (str) – The key of the first node of the edge.

  • v (str) – The key of the second node of the edge.

  • t (float) – The position of the inserted node.

Returns

str – The key of the inserted node.

Raises

Examples

>>>