Skip to content

Commit

Permalink
add some edges
Browse files Browse the repository at this point in the history
  • Loading branch information
mpollmeier committed Nov 28, 2017
1 parent fd3c181 commit 906dd81
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions janusgraph/src/test/scala/SimpleSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@ class SimpleSpec extends WordSpec with Matchers {
val Planet = "planet"
val Saturn = "saturn"

(1 to 5) foreach { i
(1 to 4) foreach { i
graph + (Planet, Name -> s"vertex $i")
}
graph + (Saturn, Name -> Saturn)
val saturnV = graph + (Saturn, Name -> Saturn)
val sunV = graph + ("sun", Name -> "sun")
saturnV --- "orbits" --> sunV

graph.V.count.head shouldBe 6
graph.E.count.head shouldBe 1

val traversal = graph.V.value(Name)
traversal.toList.size shouldBe 6
Expand Down

0 comments on commit 906dd81

Please sign in to comment.