Example #1
0
        public EvoNetClusFunc(string networkDir, string outputDir, string networkFile, string dictFile, int typeNum, int startT, int endT, double alpha)
        {
            networkTS    = new TimeNetwork(typeNum);
            clusterTS    = new TimeCluster();
            this.typeNum = typeNum;

            //load network
            for (int t = startT; t <= endT; t++)
            {
                networkTS.loadData(t, networkDir + t + @"\", dictFile, typeNum, networkFile);
            }

            this.alpha = alpha;

            betaVec = new Dictionary <int, double>();
            // authors
            betaVec[0] = 0.2;
            // author_cited
            betaVec[1] = 0.2;
            // venue
            betaVec[2] = 0.2;

            // original code
            //for (int i = 0; i < typeNum; i++)
            //{
            //control beta
            //    betaVec[i] = 0.2;
            //betaVec[i] = 0.5;
            // }

            indir  = networkDir;
            outdir = outputDir;
        }
Example #2
0
        public EvoNetClusFunc(string networkDir, string outputDir, string networkFile, string dictFile, int typeNum, int startT, int endT, double alpha)
        {
            networkTS = new TimeNetwork(typeNum);
            clusterTS = new TimeCluster();
            this.typeNum = typeNum;

            //load network
            for (int t = startT; t <= endT; t++)
            {
                networkTS.loadData(t, networkDir + t + @"\", dictFile, typeNum, networkFile);
            }

            this.alpha = alpha;
            
            betaVec = new Dictionary<int, double>();
            // authors
            betaVec[0] = 0.2;
            // author_cited
            betaVec[1] = 0.2;
            // venue
            betaVec[2] = 0.2;

            // original code
            //for (int i = 0; i < typeNum; i++)
            //{
                //control beta
            //    betaVec[i] = 0.2;
                //betaVec[i] = 0.5;
            // }

            indir = networkDir;
            outdir = outputDir;
        }