static void Main(string[] args) { var client = ConfigurationManagerNeo4J.GetDefaultClient(); PersonDAL personDAL = new PersonDAL(); User user1 = new User(); user1.Login = "******"; User user2 = new User(); user2.Login = "******"; int count = personDAL.GetShortestPath(user1.Login, user2.Login); Console.WriteLine(count); //personDAL.CreatePerson(user); //personDAL.UpdatePerson(user, "ostap"); //personDAL.DeletePerson(user); //personDAL.CreateRelationships(user2, user1); //personDAL.DeleteRelationships(user2, user1); var people = personDAL.GetWhoCommon(user1.Login, user2.Login, count); //var people = client.Cypher.Match("(p:Person)").Return(p => p.As<User>()).Results; foreach (var p in people) { Console.WriteLine(p.Login + "\n"); } Console.ReadKey(); }