nocad.connection.apply_connection_type#

nocad.connection.apply_connection_type(adj, kind)[source]#

Turn every edge of the network into a connection of the given type.

Examples

>>> apply_connection_type([[0, 1], [0, 0]], "d").toarray().astype(int)
array([[1, 1],
       [0, 1]])