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

Closes #60.