schema.vertexLabel("Person").properties("name", "age").useMultiKeyIndex().create() schema.edgeLabel("Knows").connection("Person", "Person").properties("since").add() g.addV(label, "Person", "name", "Alice", "age", 30) g.addV(label, "Person", "name", "Bob", "age", 35) g.addE(label, "Knows").from(V().has("Person", "name", "Alice")).to(V().has("Person", "name", "Bob")).property("since", 2010) g.V().has("Person", "name", "Alice").outE("Knows").inV().has("Person", "age", gt(30)).values("name")


上一篇:
下一篇:
切换中文