data_structures
union_find_count.c
Go to the documentation of this file.
1 /* ************************************************************************** */
3 /* */
4 /* ::: :::::::: */
5 /* union_find_count.c :+: :+: :+: */
6 /* +:+ +:+ +:+ */
7 /* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8 /* +#+#+#+#+#+ +#+ */
9 /* Created: 2020/07/21 22:09:22 by unite #+# #+# */
10 /* Updated: 2020/07/21 22:10:13 by unite ### ########.fr */
11 /* */
12 /* ************************************************************************** */
13 
14 #include "union_find.h"
15 
16 size_t union_find_count(const t_union_find *uf)
17 {
18  return (uf->count);
19 }
s_union_find::count
size_t count
The number of disconnected sets.
Definition: union_find.h:41
union_find.h
s_union_find
Weighted quick-union by rank with path compression by halving.
Definition: union_find.h:36
union_find_count
size_t union_find_count(const t_union_find *uf)
Returns the number of disconnected sets.
Definition: union_find_count.c:16