strlen error fixed in file graph.cpp