Skip to content
Permalink
Browse files
HugeGraph-1251: modified studio-quickstart.md.
Change-Id: I41aa908efccb0a8a5e9113ccd0aeb1b5f801f8f8
  • Loading branch information
nanke666 committed Apr 25, 2018
1 parent a2512ae commit 296b05c5461fd3073e8418d998320f47be8d5b8b
Showing 1 changed file with 3 additions and 1 deletion.
@@ -193,13 +193,15 @@ graph.schema().propertyKey("price").asInt().ifNotExist().create()
<p>图 4-7 创建schema</p>
</center>

接下来进行顶点类型(VertexLabel)和 边类型 (EdgeLabel)的创建:
顶点类型(VertexLabel)的创建:

```java
person = graph.schema().vertexLabel("person").properties("name", "age", "city").primaryKeys("name").ifNotExist().create()
software = graph.schema().vertexLabel("software").properties("name", "lang", "price").primaryKeys("name").ifNotExist().create()
```

边类型(EdgeLabel)的创建:

```java
knows = graph.schema().edgeLabel("knows").sourceLabel("person").targetLabel("person").properties("date").ifNotExist().create()
created = graph.schema().edgeLabel("created").sourceLabel("person").targetLabel("software").properties("date", "city").ifNotExist().create()

0 comments on commit 296b05c

Please sign in to comment.