tests on main
changed init_graph behavior
Avoiding segmentation fault with malloc