コード例 #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);
        }