You can preview a shading network, or a part of a shading network, in the Render View by connecting it to a Render Target node. Use IPR for mental ray to preview and tweak your shading graph real time.
You can preview the result of the shading graph in the Render View window. Select IPR to tweak your shading graph and visualize the changes real time.