schema.vertexLabel("Atom").ifNotExists().partitionBy("id", Text).property("name", Text).create();
schema.edgeLabel('bond').ifNotExists().from('Atom').to('Atom').create()
O1 = g.addV("Atom").property("id", "O1").property("name", "O").next();
O2 = g.addV("Atom").property("id", "O2").property("name", "O").next();
C = g.addV("Atom").property("id", "C1").property("name", "C").next();
g.addE("bond").from(C).to(O1).next();
g.addE("bond").from(C).to(O2).next();
dev.V()
Last active
May 21, 2020 15:01
-
-
Save mzsima/af617eaa47b8bbda3a8f8aeb3dd201c0 to your computer and use it in GitHub Desktop.
CO2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment