Skip to content

Commit ef408ea

Browse files
committed
Add revised example graph
1 parent 643097f commit ef408ea

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

articles/cosmos-db/gremlin/introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Graph databases are often included within the NoSQL or non-relational database c
8181

8282
Let's use a sample graph to understand how queries can be expressed in Gremlin. The following figure shows a business application that manages data about users, interests, and devices in the form of a graph.
8383

84-
:::image type="content" source="./media/introduction/sample-graph.png" alt-text="Sample database showing persons, devices, and interests" border="false":::
84+
:::image type="content" source="media/introduction/example-graph.svg" alt-text="Sample property graph showing persons, devices, and interests." border="false":::
8585

8686
This graph has the following *vertex* types. These types are also called *labels* in Gremlin:
8787

@@ -138,7 +138,7 @@ g.V().
138138

139139
Where graphs shine is when you need to answer questions like "What operating systems do friends of Thomas use?". You can run this Gremlin traversal to get that information from the graph:
140140

141-
```java
141+
```console
142142
g.V('thomas.1').
143143
out('knows').
144144
out('uses').

0 commit comments

Comments
 (0)