priorityy (pypi): Priority Based Connected Components
Keywords: Connected|Components