示例#1
0
        public static void Main(string[] args)
        {
            Console.WriteLine("starting....");

            try
            {
                Dictionary <string, Person> graph = Recommendor.CreateGraphwithSampleData();


                //A graph based matching
                Recommendor.BFSBasedMatchingRecommendation(graph, "B", 2);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }

            Console.ReadLine();
        }
示例#2
0
 public UnitTests()
 {
     _Graph = Recommendor.CreateGraphwithSampleData();
 }
示例#3
0
 public void BFSBasedMatchingRecommendationTestTestZero()
 {
     Recommendor.BFSBasedMatchingRecommendation(_Graph, "B", 0);
 }
示例#4
0
 public void BFSBasedMatchingRecommendationTestNull()
 {
     Recommendor.BFSBasedMatchingRecommendation(null, null, 2);
 }
示例#5
0
 public void BFSBasedMatchingRecommendationinTestInvalid()
 {
     Recommendor.BFSBasedMatchingRecommendation(_Graph, "E", 2);
 }
示例#6
0
 public void BFSBasedMatchingRecommendationTest5()
 {
     Recommendor.BFSBasedMatchingRecommendation(_Graph, "D", 2);
 }
示例#7
0
        //test

        public void BFSBasedMatchingRecommendationTest1()
        {
            Recommendor.BFSBasedMatchingRecommendation(_Graph, "P", 3);
        }