Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static string hostname = "yourhostname.gremlin.cosmosdb.azure.com";
- private static int port = 443;
- private static string authKey = "yourAuthKey";
- private static string database = "yourGraphDbName";
- private static string collection = "yourGraph";
- static async Task Main(string[] args)
- {
- string[] names = {
- "Hazel", "Madeline", "Isaac", "Shelia", "Christy", "Thelma", "Kara", "Johnnie", "Ron", "Frances",
- "Eddie", "Mona", "Jose", "Santos", "Joyce", "Jim", "Shannon", "Ralph", "Benjamin", "Estelle", "Celia"
- };
- var gremlinServer = new GremlinServer(
- hostname, port,
- enableSsl: true,
- username: "/dbs/" + database + "/colls/" + collection,
- password: authKey);
- var queries = ConstructSociogram(names);
- await ExecuteGraphQueriesAsync(gremlinServer, queries);
- Console.WriteLine("Graph constructed. B-)");
- Console.ReadLine();
- }
Add Comment
Please, Sign In to add comment