nocad.placement.set_cover#

nocad.placement.set_cover(adj, r_max)[source]#

Grassroot set covering (MATLAB setCover): nodes whose \(r_{\max}\)-step reach covers the network. Structural controllability is not guaranteed.

Examples

>>> set_cover([[0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1], [0, 0, 0, 0]], 1)
array([0, 2])