~/Downloads/air-routes.graphml (No such file or directory)
~/Downloads/air-routes.graphml (No such file or directory)
~ % curl https://raw.githubusercontent.com/krlawrence/graph/refs/heads/master/sample-data/air-routes.graphml -o air-routes.graphml % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 7641k 100 7641k 0 0 18.6M 0 --:--:-- --:--:-- --:--:-- 18.9M~ % head air-routes.graphml<?xml version='1.0' ?><!-- ******************************************************************************* --><!-- Sample file containing selected air routes between selected airports. --><!-- Intended for learning purposes only and not for travel planning! --><!-- --><!-- Author: Kelvin R. Lawrence. --><!-- Graph version : 0.77 , 2017-Oct-06 --><!-- --><!-- Please send details of errors in the graph or suggestions to: --><!-- e-mail: gfxman@yahoo.com , twitter: @gfxman -->
~ % curl https://raw.githubusercontent.com/krlawrence/graph/refs/heads/master/sample-data/air-routes.graphml -o air-routes.graphml % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 7641k 100 7641k 0 0 18.6M 0 --:--:-- --:--:-- --:--:-- 18.9M~ % head air-routes.graphml<?xml version='1.0' ?><!-- ******************************************************************************* --><!-- Sample file containing selected air routes between selected airports. --><!-- Intended for learning purposes only and not for travel planning! --><!-- --><!-- Author: Kelvin R. Lawrence. --><!-- Graph version : 0.77 , 2017-Oct-06 --><!-- --><!-- Please send details of errors in the graph or suggestions to: --><!-- e-mail: gfxman@yahoo.com , twitter: @gfxman -->
Solution
Using master branch I was able to see the error you had when using an incorrect file path but then the console succeeded after I modified the file path to point to the file I downloaded from Kelvin's repository:
Connected to the target VM, address: '127.0.0.1:53213', transport: 'socket' \,,,/ (o o)-----oOOo-(3)-oOOo-----plugin activated: tinkerpop.tinkergraphplugin activated: tinkerpop.sugarplugin activated: tinkerpop.credentialsplugin activated: tinkerpop.remoteplugin activated: tinkerpop.utilitiesgremlin> conf = new BaseConfiguration()conf.setProperty("gremlin.tinkergraph.vertexIdManager","LONG")conf.setProperty("gremlin.tinkergraph.edgeIdManager","LONG")conf.setProperty("gremlin.tinkergraph.vertexPropertyIdManager","LONG")graph = TinkerGraph.open(conf)conf = new BaseConfiguration()==>org.apache.commons.configuration2.BaseConfiguration@6f9e08d4gremlin> conf.setProperty("gremlin.tinkergraph.vertexIdManager","LONG")==>nullgremlin> conf.setProperty("gremlin.tinkergraph.edgeIdManager","LONG")==>nullgremlin> conf.setProperty("gremlin.tinkergraph.vertexPropertyIdManager","LONG")==>nullgremlin> graph = TinkerGraph.open(conf)==>tinkergraph[vertices:0 edges:0]gremlin> graph.io(graphml()).readGraph('/mydata/air-routes.graphml')graph.io(graphml()).readGraph('/mydata/air-routes.graphml')/mydata/air-routes.graphml (No such file or directory)Type ':help' or ':h' for help.Display stack trace? [yN]nngremlin> graph.io(graphml()).readGraph('/Users/x/Downloads/air-routes-latest.graphml')graph.io(graphml()).readGraph('/Users/x/Downloads/air-routes-latest.graphml')==>nullgremlin> g=graph.traversal():set max-iteration 1000 g=graph.traversal()==>graphtraversalsource[tinkergraph[vertices:3749 edges:57645], standard]gremlin> :set max-iteration 1000 gremlin> g.V()g.V()==>v[0]==>v[1]==>v[2]==>v[3]==>v[4]==>v[5]==>v[6]==>v[7]==>v[8]==>v[9]==>v[10]
Connected to the target VM, address: '127.0.0.1:53213', transport: 'socket' \,,,/ (o o)-----oOOo-(3)-oOOo-----plugin activated: tinkerpop.tinkergraphplugin activated: tinkerpop.sugarplugin activated: tinkerpop.credentialsplugin activated: tinkerpop.remoteplugin activated: tinkerpop.utilitiesgremlin> conf = new BaseConfiguration()conf.setProperty("gremlin.tinkergraph.vertexIdManager","LONG")conf.setProperty("gremlin.tinkergraph.edgeIdManager","LONG")conf.setProperty("gremlin.tinkergraph.vertexPropertyIdManager","LONG")graph = TinkerGraph.open(conf)conf = new BaseConfiguration()==>org.apache.commons.configuration2.BaseConfiguration@6f9e08d4gremlin> conf.setProperty("gremlin.tinkergraph.vertexIdManager","LONG")==>nullgremlin> conf.setProperty("gremlin.tinkergraph.edgeIdManager","LONG")==>nullgremlin> conf.setProperty("gremlin.tinkergraph.vertexPropertyIdManager","LONG")==>nullgremlin> graph = TinkerGraph.open(conf)==>tinkergraph[vertices:0 edges:0]gremlin> graph.io(graphml()).readGraph('/mydata/air-routes.graphml')graph.io(graphml()).readGraph('/mydata/air-routes.graphml')/mydata/air-routes.graphml (No such file or directory)Type ':help' or ':h' for help.Display stack trace? [yN]nngremlin> graph.io(graphml()).readGraph('/Users/x/Downloads/air-routes-latest.graphml')graph.io(graphml()).readGraph('/Users/x/Downloads/air-routes-latest.graphml')==>nullgremlin> g=graph.traversal():set max-iteration 1000 g=graph.traversal()==>graphtraversalsource[tinkergraph[vertices:3749 edges:57645], standard]gremlin> :set max-iteration 1000 gremlin> g.V()g.V()==>v[0]==>v[1]==>v[2]==>v[3]==>v[4]==>v[5]==>v[6]==>v[7]==>v[8]==>v[9]==>v[10]