Graph initialization working