}
try {
if (graphFile == null || graphFile.length() == 0) {
// pure in memory if graph file is specified
return mockTx ? new MockTinkerTransactionalGraph() : new TinkerGraph();
} else {
return mockTx ? new MockTinkerTransactionalGraph(graphFile, getFileType(fileType)) : new TinkerGraph(graphFile, getFileType(fileType));
}
} catch (Exception ex) {
throw new GraphConfigurationException(ex);
}
}