<configuration>
<configSections>
<section name="neo4jRestNet" type="Neo4jRestNet.Configuration.ConnectionSettings, Neo4jRestNet" />
</configSections>
<neo4jRestNet>
<databases>
<add name="neo4j" default="true" https="false" domain="localhost" port="7474" />
</databases>
</neo4jRestNet>
<!-- Only needed if you are using the encryption class -->
<appSettings>
<add key="EncryptIdKey" value="KeyForEncrypting"/>
<add key="EncryptIdIV" value="IVForEncrypting1"/>
</appSettings>
</configuration>
Node RootNode = Node.GetRootNode();
Node node = Node.CreateNode();
Properties prop = new Properties();
prop.SetProperty(NodeProperty.FirstName, "Joe");
prop.SetProperty(NodeProperty.LastName, "Smith");
Node nodeUserWithName = Node.CreateNode(prop);
RootNode.CreateRelationshipTo(nodeUserWithName, "Likes");
Properties RelProp = new Properties();
RelProp.SetProperty("CustomRelProp", "CustomPropValue");
nodeUserWithName.CreateRelationshipTo(node, "Knows", RelProp);
IEnumerable<Node> LikeNodes = Gremlin.Post<Node>(RootNode.Id, "out('Likes')");
IEnumerable<Node> SameLikeNodes = Gremlin.Post<Node>(new GremlinScript(RootNode).Out(RelationshipType.Likes.ToString()));
GremlinScript script = new GremlinScript(RootNode);
script.OutE()
.InV()
.OutE()
.Filter(it => it.getProperty(RelationshipProperty.Name.ToString()) == "MyRelationship");
IEnumerable<Relationship> myRelationship = Gremlin.Post<Relationship>(script);`
GremlinScript tblScript = new GremlinScript();
tblScript.NewTable("t")
.gV(RootNode)
.Out(RelationshipType.Likes.ToString())
.As("Like")
.Table("t", new List<string>{ "Like" })
.Append(" >> -1; t;");
DataTable dt = Gremlin.GetTable(tblScript);