imbajin commented on code in PR #331:
URL:
https://github.com/apache/incubator-hugegraph-toolchain/pull/331#discussion_r975167635
##########
hugegraph-client/src/main/java/com/baidu/hugegraph/example/MovieExample.java:
##########
@@ -56,14 +56,22 @@ public static void main(String[] args) {
GraphManager graph = hugeClient.graph();
- Vertex theMatrix = graph.addVertex(T.label, "movie", "title", "The
Matrix", "released", 1999);
- Vertex keanu = graph.addVertex(T.label, "person", "name", "keanu
Reeves", "born", 1964);
- Vertex carrie = graph.addVertex(T.label, "person", "name",
"carrie-anne Moss", "born", 1967);
- Vertex laurence = graph.addVertex(T.label, "person", "name", "laurence
Fishburne", "born", 1961);
- Vertex hugo = graph.addVertex(T.label, "person", "name", "hugo
Weaving", "born", 1960);
- Vertex lillyW = graph.addVertex(T.label, "person", "name", "Lilly
Wachowski", "born", 1967);
- Vertex lanaW = graph.addVertex(T.label, "person", "name", "Lana
Wachowski", "born", 1965);
- Vertex joelS = graph.addVertex(T.label, "person", "name", "Joel
Silver", "born", 1952);
+ Vertex theMatrix = graph.addVertex(T.LABEL,
+ "movie", "title", "The Matrix",
"released", 1999);
+ Vertex keanu = graph.addVertex(T.LABEL,
+ "person", "name", "keanu Reeves",
"born", 1964);
+ Vertex carrie = graph.addVertex(T.LABEL,
+ "person", "name", "carrie-anne Moss",
"born", 1967);
+ Vertex laurence = graph.addVertex(T.LABEL,
+ "person", "name", "laurence
Fishburne", "born", 1961);
+ Vertex hugo = graph.addVertex(T.LABEL,
+ "person", "name", "hugo Weaving",
"born", 1960);
+ Vertex lillyW = graph.addVertex(T.LABEL,
+ "person", "name", "Lilly Wachowski",
"born", 1967);
+ Vertex lanaW = graph.addVertex(T.LABEL,
+ "person", "name", "Lana Wachowski",
"born", 1965);
+ Vertex joelS = graph.addVertex(T.LABEL,
+ "person", "name", "Joel Silver",
"born", 1952);
Review Comment:
seems no need to wrap new line in 59~74
##########
hugegraph-client/src/main/java/com/baidu/hugegraph/example/MovieExample.java:
##########
@@ -73,10 +81,12 @@ public static void main(String[] args) {
lanaW.addEdge("DIRECTED", theMatrix, "score", 10);
joelS.addEdge("PRODUCED", theMatrix, "score", 10);
- Vertex emil = graph.addVertex(T.label, "person", "name", "emil
Eifrem", "born", 1978);
+ Vertex emil = graph.addVertex(T.LABEL, "person", "name", "emil
Eifrem", "born", 1978);
emil.addEdge("ACTED_IN", theMatrix, "roles", "emil");
- Vertex theMatrixReloaded = graph.addVertex(T.label, "movie", "title",
"The Matrix Reloaded", "released", 2003);
+ Vertex theMatrixReloaded = graph.addVertex(T.LABEL,
+ "movie", "title",
+ "The Matrix Reloaded",
"released", 2003);
Review Comment:
Is it a rule? Seems a little strange?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]