Added support for instantiating graphs by passing in a graph name
directly to the constructor.