nocad.design.maximum_matching_ss#

nocad.design.maximum_matching_ss(adj)[source]#

Maximum matching with signal sharing (MATLAB maximumMatchingSS).

Returns:
matched, unmatchedndarray
unmatched_sccndarray

One node of every matched source SCC; it receives a shared input signal.

matched_byndarray of shape (N,)

Examples

>>> adj = [[0, 1, 0, 0], [1, 0, 1, 0], [0, 0, 0, 0], [0, 0, 1, 0]]
>>> maximum_matching_ss(adj)[2]
array([0])