nocad.connection.connection_type#
- nocad.connection.connection_type(adj, i, j)[source]#
Type (
"a"–"g") of the connection between \(x_i\) and \(x_j\).Noneif the two nodes are not connected. For a symmetric pair with a single self-loop the type is"f"whichever node carries the loop.Examples
>>> connection_type([[1, 1], [0, 0]], 0, 1), connection_type([[1, 1], [1, 1]], 0, 1) ('b', 'g')