let's go ! B)

added bfs WIP
This commit is contained in:
Tanguy MAZE
2019-03-27 18:04:14 +01:00
parent 4e87b2e587
commit 7a67b49802
6 changed files with 209 additions and 16 deletions

View File

@@ -6,11 +6,11 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/23 17:31:19 by tmaze #+# #+# */
/* Updated: 2019/03/26 17:08:38 by tmaze ### ########.fr */
/* Updated: 2019/03/27 17:44:40 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef LEM_IN_N
#ifndef LEM_IN_H
# define LEM_IN_H
# include "libft.h"
@@ -24,7 +24,7 @@ typedef struct s_node
int ind;
} t_node;
typedef struct s_ind;
typedef struct s_ind
{
int index;
struct s_ind *next;
@@ -33,6 +33,7 @@ typedef struct s_ind;
typedef struct s_lmdata
{
int nbants;
int nb_nodes;
t_list *nodes;
t_ind **adj;
} t_lmdata;
@@ -40,4 +41,7 @@ typedef struct s_lmdata
void lm_initdata(t_lmdata *data);
int lm_getparams(t_lmdata *data);
t_ind *lst_indadd(t_ind **lst, int ind);
void lst_inddel(t_ind **lst);
#endif