You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
from sklearn.utils._typedefs cimport intp_t
|
|
|
|
cdef class UnionFind:
|
|
cdef intp_t next_label
|
|
cdef intp_t[:] parent
|
|
cdef intp_t[:] size
|
|
|
|
cdef void union(self, intp_t m, intp_t n) noexcept
|
|
cdef intp_t fast_find(self, intp_t n) noexcept
|