Converted the determine_graph_type() function to the new relax design.
Authored by: bugman 2008-09-24
Parent: [r7243]
Child: [r7245]