Skip to content

Commit

Permalink
Update GraphOfTheMoviesExample.java
Browse files Browse the repository at this point in the history
  • Loading branch information
simon824 authored Aug 23, 2022
1 parent 5172f77 commit c2eec19
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,9 @@ public static void load(final HugeGraph graph) {
.sourceLabel("person").targetLabel("movie")
.create();

schema.indexLabel("personByName").onV("person").by("name")
.secondary().create();
schema.indexLabel("personByBorn").onV("person").by("born")
.range().create();

graph.tx().open();

Vertex theMatrix = graph.addVertex(T.label, "movie", "title",
"The Matrix", "released", 1999);
Vertex keanu = graph.addVertex(T.label, "person", "name", "keanu Reeves", "born", 1964);
Expand Down

0 comments on commit c2eec19

Please sign in to comment.