CreateGraph implemented but has to be tested