network_split_edge

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

Split and edge by inserting a node along its length.

Parameters:
edgetuple[hashable, hashable]

The identifier of the edge to split.

tfloat, optional

The position of the inserted node on the edge.

Returns:
hashable

The key of the inserted node.

Raises:
ValueError

If t is not in the range 0-1.

Exception

If the edge is not part of the network.