Throw exception on unrecognized graph type