added possibility of changing evaluation of directional derivative in gmres to '-h*x' in case this yields a graphical degree sequence