-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use traversal to add elements, mostly to fix remote graph setups
when using remote graphs, Graph is actually just an empty shell and can't be used to e.g. add elements. open problems: * marshalled classes can use the @id annotation to specify the ID of a vertex, but we cannot set the id of a vertex inside a traversal * same needs to be applied for edges re #223
- Loading branch information
1 parent
d04d82a
commit 55d88d2
Showing
7 changed files
with
64 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package gremlin.scala | ||
|
||
case class SemiEdge(from: Vertex, label: String, properties: Seq[KeyValue[_]] = Nil) { | ||
def -->(to: Vertex) = from.asScala.addEdge(label, to, properties) | ||
case class SemiEdge(from: Vertex, label: String, properties: KeyValue[_]*) { | ||
def -->(to: Vertex) = from.asScala.addEdge(label, to, properties: _*) | ||
} | ||
|
||
case class SemiDoubleEdge(right: Vertex, label: String, properties: Seq[KeyValue[_]] = Nil) | ||
case class SemiDoubleEdge(right: Vertex, label: String, properties: KeyValue[_]*) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters