Init of graphs