added graph name as parameter to use when loading and querying a graph