public void DistanceGivenSanyiAndBelaReturn1() { var sanyi = _users[0]; var sophie = _users[3]; var expectedDistance = 1; Assert.AreEqual(expectedDistance, _userGraph.GetShortestDistanceBetweenNodes(sanyi, sophie)); }
static void Main(string[] args) { RandomDataGenerator generator = new RandomDataGenerator(); List <UserNode> users = generator.Generate(); var userGraph = new UserGraph(users); var shortestDistance = userGraph.GetShortestDistanceBetweenNodes(users[0], users[6]); }