void CreateANewUser(IVertexType myUsertype, long myCounter, IGraphDS myGraphDS, List<long> myCityVertexIDs, IVertexType myCityType, Int64 myTransactionID) { myGraphDS.Insert<long>(null, myTransactionID, new RequestInsertVertex(_vtUser) .AddStructuredProperty(_pName, "User" + myCounter) .AddEdge(new EdgePredefinition(_pHasVisited).AddVertexID(_vtCity, myCityVertexIDs)), GetVertexID); }
long CreateANewUser(IVertexType usertype, long i, List<long> recentVertexIDs, Random myPRNG, IGraphDS myGraphDS, Int64 myTransactionID) { if (recentVertexIDs.Count == 0) { return myGraphDS.Insert<long>(null, myTransactionID, new RequestInsertVertex("User") .AddStructuredProperty("Name", "User" + i) .AddStructuredProperty("Age", myPRNG.Next(18, 90)), GetVertexID); } else { return myGraphDS.Insert<long>(null, myTransactionID, new RequestInsertVertex("User") .AddStructuredProperty("Name", "User" + i) .AddStructuredProperty("Age", myPRNG.Next(18, 90)) .AddEdge(CreateEdge(recentVertexIDs, myPRNG, usertype.ID)), GetVertexID); } }