Example #1
0
        static void TestPathMining()
        {
            IndexedGraph g = new IndexedGraph();

            g.Read(@"D:\Users\v-jiahan\HORM\Data\ex3_graph.txt");
            FrequentPathMining fpm = new FrequentPathMiningBreadth();

            fpm.Init(g, 1000, 3, true);
            ShowingNames showname = new ShowingNames(@"D:\Users\v-jiahan\HORM\Data\ex3_graph");

            ShowResult(fpm._resultCache, showname);
        }
Example #2
0
        private static void TestNBMining()
        {
            IndexedGraph g = new IndexedGraph();

            g.Read(@"E:\RkNPQ\yago2s_tsv\conv\yago2_graph.txt");
            FrequentNeighborhoodMining fnMiner = new FrequentNeighborhoodMining(g);

            var ret = fnMiner.MineEgonet(3, 4, 2, new int[] { 109374, 570862, 1033940 });

            Console.WriteLine(ret.Count);
            return;
        }