change to the graphs so as to have graph Id as int