a bit of code cleaning on the parser

This commit is contained in:
Mthandazo Ndhlovu
2019-04-30 12:06:58 +02:00
parent a51c8ad81d
commit ee59b79e75
14 changed files with 30 additions and 39 deletions

View File

@@ -6,7 +6,7 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/18 09:59:11 by tmaze #+# #+# */
/* Updated: 2019/04/26 12:49:36 by mndhlovu ### ########.fr */
/* Updated: 2019/04/30 07:14:04 by mndhlovu ### ########.fr */
/* */
/* ************************************************************************** */
@@ -109,14 +109,11 @@ t_ind **edmonds_karp(t_lmdata *data, int s_ind, int e_ind)
scores[0] = 0;
nb_paths = 0;
i = 0;
ft_printf("data: %p\ndata->nb_nodes: %d\ndata->adj: %p\n\n", data, data->nb_nodes, data->adj);
while (i < data->nb_nodes)
tab[i++].old_visited = 0;
bfs(data, tab, s_ind, e_ind);
ft_printf("tab[e_ind].parent: %d\n", tab[e_ind].parent);
while (tab[e_ind].parent != -1)
{
ft_printf("new path\n");
nb_paths++;
update_weights(data, tab, s_ind, e_ind);
ret[1] = resolve_paths(data, nb_paths, s_ind, e_ind);