/*
 *  lists.c
 *  graphes
 *
 *  Created by St�phane on 12/02/18.
 *  Copyright 2018 __MyCompanyName__. All rights reserved.
 *
 */

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>


#include "lists.h"
#include "utils.h"


// Lists

LIST newLNode(int v, LIST s, int w) {
    LIST sommet = (LIST) malloc(sizeof(struct maillon));
    assert(sommet != NULL);
    sommet->val = v;
    sommet->suiv = s;
    sommet->w = w;
    return sommet;
}