Fixed compiler warnings in debug flag, fix bug in graph representation