hugegraph-test/src/main/java/org/apache/hugegraph/core/EdgeCoreTest.java [6099:6123]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        SchemaManager schema = graph().schema();
        schema.propertyKey("weight").asDouble().ifNotExist().create();

        schema.vertexLabel("user")
              .properties("name")
              .primaryKeys("name")
              .ifNotExist()
              .create();

        schema.edgeLabel("like")
              .sourceLabel("user")
              .targetLabel("user")
              .properties("weight")
              .ifNotExist()
              .create();

        schema.indexLabel("likeByWeight")
              .onE("like")
              .by("weight")
              .unique()
              .ifNotExist()
              .create();

        Vertex marko = graph().addVertex(T.label, "user", "name", "marko");
        Vertex vadas = graph().addVertex(T.label, "user", "name", "vadas");
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



hugegraph-test/src/main/java/org/apache/hugegraph/core/EdgeCoreTest.java [6144:6165]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        SchemaManager schema = graph().schema();
        schema.propertyKey("weight").asDouble().ifNotExist().create();
        schema.vertexLabel("user")
              .properties("name")
              .primaryKeys("name")
              .ifNotExist()
              .create();
        schema.edgeLabel("like")
              .sourceLabel("user")
              .targetLabel("user")
              .properties("weight")
              .ifNotExist()
              .create();
        schema.indexLabel("likeByWeight")
              .onE("like")
              .by("weight")
              .unique()
              .ifNotExist()
              .create();

        Vertex marko = graph().addVertex(T.label, "user", "name", "marko");
        Vertex vadas = graph().addVertex(T.label, "user", "name", "vadas");
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



