gustaf.utils.connec.sequence_to_edges#

gustaf.utils.connec.sequence_to_edges(seq, closed=False)[source]#

Given a sequence of int, “connect” to turn them into edges.

Parameters:
  • seq ((n,) array-like)

  • closed (bool)

Returns:

edges

Return type:

(m, 2) np.ndarray