#include "bipartite.h"
#include "xmalloc.h"
-struct _bipartite_t {
+struct bipartite_t {
int n_left, n_right;
bitset_t *adj[1];
};
bitset_t *matched_right = bitset_alloca(gr->n_right);
memset(matching, -1, gr->n_left * sizeof(int));
- while (apply_alternating_path(gr, matching, matched_left, matched_right));
+ while (apply_alternating_path(gr, matching, matched_left, matched_right)) {
+ }
}
void bipartite_dump_f(FILE *f, const bipartite_t *gr)