implemented Q_n_m in VariableToFunction and changed state of vertices to Int