I saw a post with same title, but unfortunately couldn’t find a soulution by looking at given examples
I have created the nodes the folowing way:
private static void createExampleNetwork(GraphClient client)
{
try
{
//CypherQuery cq = new CypherQuery();
//string createNodeQuery = "CREATE (a {name : 'Andres'}) RETURN";
//string response = cq.CreateRequest(createNodeQuery);
var myNodeReferenceA = client.Create(new ExampleNode { Name = "A" });
var myNodeReferenceB = client.Create(new ExampleNode { Name = "B" });
var myNodeReferenceC = client.Create(new ExampleNode { Name = "C" });
var myNodeReferenceD = client.Create(new ExampleNode { Name = "D" });
var myNodeReferenceE = client.Create(new ExampleNode { Name = "E" });
var myNodeReferenceF = client.Create(new ExampleNode { Name = "F" });
var myNodeReferenceG = client.Create(new ExampleNode { Name = "G" });
}
catch (Exception ex)
{
}
}
I would like to create the following relationships:
A–B
A–C
A–D
C–D
B–G
but don’t know how.
I’ve looked at examples
http://hg.readify.net/neo4jclient/src/4693da483a90/Test/RelationshipTests.cs
and
http://hg.readify.net/neo4jclient/src/4693da483a90/Test/ApiUsageIdeas.cs
but still don’t know how the relationships are created.
I would be very thankful if anyone could give a useful example.
I’ve found a solution