#145 implemented method to transform the ast-strings in graphs.cpp
fixed merge errors