亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? fastcommunity_mh.cc

?? 大型復(fù)雜網(wǎng)絡(luò)社區(qū)劃分的快速算法
?? CC
?? 第 1 頁 / 共 4 頁
字號:
////////////////////////////////////////////////////////////////////////// --- COPYRIGHT NOTICE ---------------------------------------------// FastCommunityMH - infers community structure of networks// Copyright (C) 2004 Aaron Clauset//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of the License, or// (at your option) any later version.//// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the// GNU General Public License for more details.//// You should have received a copy of the GNU General Public License// along with this program; if not, write to the Free Software// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA// // See http://www.gnu.org/licenses/gpl.txt for more details.// ////////////////////////////////////////////////////////////////////////// Author       : Aaron Clauset  (aaron@cs.unm.edu)				//// Location     : U. Michigan, U. New Mexico						//// Time         : January-August 2004							//// Collaborators: Dr. Cris Moore (moore@cs.unm.edu)				////              : Dr. Mark Newman (mejn@umich.edu)				//////////////////////////////////////////////////////////////////////////// --- DEEPER DESCRIPTION ---------------------------------------------//  see http://www.arxiv.org/abs/cond-mat/0408187 for more information// //  - read network structure from data file (see below for constraints)//  - builds dQ, H and a data structures//  - runs new fast community structure inference algorithm//  - records Q(t) function to file//  - (optional) records community structure (at t==cutstep)//  - (optional) records the list of members in each community (at t==cutstep)//////////////////////////////////////////////////////////////////////////// --- PROGRAM USAGE NOTES ---------------------------------------------// This program is rather complicated and requires a specific kind of input,// so some notes on how to use it are in order. Mainly, the program requires// a specific structure input file (.pairs) that has the following characteristics://  //  1. .pairs is a list of tab-delimited pairs of numeric indices, e.g.,//		"54\t91\n"//  2. the network described is a SINGLE COMPONENT//  3. there are NO SELF-LOOPS or MULTI-EDGES in the file; you can use//     the 'netstats' utility to extract the giantcomponent (-gcomp.pairs)//     and then use that file as input to this program//  4. the MINIMUM NODE ID = 0 in the input file; the maximum can be//     anything (the program will infer it from the input file)// // Description of commandline arguments// -f <filename>    give the target .pairs file to be processed// -l <text>		the text label for this run; used to build output filenames// -t <int>		timer period for reporting progress of file input to screen// -s			calculate and record the support of the dQ matrix// -v --v ---v		differing levels of screen output verbosity// -o <directory>   directory for file output// -c <int>		record the aglomerated network at step <int>// ////////////////////////////////////////////////////////////////////////// Change Log:// 2006-02-06: 1) modified readInputFile to be more descriptive of its actions//             2) removed -o functionality; program writes output to directory//             of input file. (also removed -h option of command line)// 2006-10-13: 3) Janne Aukia (jaukia@cc.hut.fi) suggested changes to the //             mergeCommunities() function here (see comments in that function),//             and an indexing adjustment in printHeapTop10() in maxheap.h.//////////////////// //////////////////////////////////////////////////////#include <iostream.h>#include <fstream>#include <string>#include "stdlib.h"#include "time.h"#include "math.h"#include "maxheap.h"#include "vektor.h"using namespace std;// ------------------------------------------------------------------------------------// Edge object - defined by a pair of vertex indices and *edge pointer to next in linked-listclass edge {public:	int     so;					// originating node	int     si;					// terminating node	edge    *next;					// pointer for linked list of edges		edge();						// default constructor	~edge();						// default destructor};edge::edge()  { so = 0; si = 0; next = NULL; }edge::~edge() {}// ------------------------------------------------------------------------------------// Nodenub object - defined by a *node pointer and *node pointer struct nodenub {	tuple	*heap_ptr;			// pointer to node(max,i,j) in max-heap of row maxes	vektor    *v;					// pointer stored vector for (i,j)};// ------------------------------------------------------------------------------------// tuple object - defined by an real value and (row,col) indices#if !defined(TUPLE_INCLUDED)#define TUPLE_INCLUDEDstruct tuple {	double    m;					// stored value	int		i;					// row index	int		j;					// column index	int		k;					// heap index};#endif// ordered pair structures (handy in the program)struct apair { int x; int y; };#if !defined(DPAIR_INCLUDED)#define DPAIR_INCLUDEDclass dpair {public:	int x; double y; dpair *next;	dpair(); ~dpair();};dpair::dpair()  { x = 0; y = 0.0; next = NULL; }dpair::~dpair() {}#endif// ------------------------------------------------------------------------------------// List object - simple linked list of integersclass list {public:	int		index;				// node index	list		*next;				// pointer to next element in linked list	list();   ~list();};list::list()  { index= 0; next = NULL; }list::~list() {}// ------------------------------------------------------------------------------------// Community stub object - stub for a community listclass stub {public:	bool		valid;				// is this community valid?	int		size;				// size of community	list		*members;				// pointer to list of community members	list		*last;				// pointer to end of list	stub();   ~stub();};stub::stub()  { valid = false; size = 0; members = NULL; last = NULL; }stub::~stub() {	list *current;	if (members != NULL) {		current = members;		while (current != NULL) { members = current->next; delete current; current = members; }	}}// ------------------------------------------------------------------------------------// FUNCTION DECLARATIONS --------------------------------------------------------------void buildDeltaQMatrix();void buildFilenames();void dqSupport();void groupListsSetup();void groupListsStats();void groupListsUpdate(const int x, const int y);void mergeCommunities(int i, int j);bool parseCommandLine(int argc,char * argv[]);void readInputFile();void recordGroupLists();void recordNetwork();// ------------------------------------------------------------------------------------// PROGRAM PARAMETERS -----------------------------------------------------------------struct netparameters {	int			n;				// number of nodes in network	int			m;				// number of edges in network	int			maxid;			// maximum node id	int			minid;			// minimum node id}; netparameters    gparm;struct groupstats {	int			numgroups;		// number of groups	double		meansize;			// mean size of groups	int			maxsize;			// size of largest group	int			minsize;			// size of smallest group	double		*sizehist;		// distribution of sizes}; groupstats		gstats;struct outparameters {	short int		textFlag;			// 0: no console output								// 1: writes file outputs	bool			suppFlag;			// T: no support(t) file								// F: yes support(t) file	short int		fileFlag;			// 	string		filename;			// name of input file	string		d_in;			// (dir ) directory for input file	string		d_out;			// (dir ) director for output file	string		f_parm;			// (file) parameters output	string		f_input;			// (file) input data file	string		f_joins;			// (file) community hierarchy	string		f_support;		// (file) dQ support as a function of time	string		f_net;			// (file) .wpairs file for .cutstep network	string		f_group;			// (file) .list of indices in communities at .cutstep	string		f_gstats;			// (file) distribution of community sizes at .cutstep	string		s_label;			// (temp) text label for run	string		s_scratch;		// (temp) text for building filenames	int			timer;			// timer for displaying progress reports 	bool			timerFlag;		// flag for setting timer	int			cutstep;			// step at which to record aglomerated network}; outparameters	ioparm;// ------------------------------------------------------------------------------------// ----------------------------------- GLOBAL VARIABLES -------------------------------char		pauseme;edge		*e;				// initial adjacency matrix (sparse)edge		*elist;			// list of edges for building adjacency matrixnodenub   *dq;				// dQ matrixmaxheap   *h;				// heap of values from max_i{dQ_ij}double    *Q;				// Q(t)dpair     Qmax;			// maximum Q value and the corresponding time tdouble    *a;				// A_iapair	*joins;			// list of joinsstub		*c;				// link-lists for communitiesenum {NONE};int    supportTot;double supportAve;// ------------------------------------------------------------------------------------// ----------------------------------- MAIN PROGRAM -----------------------------------int main(int argc,char * argv[]) {	// default values for parameters which may be modified from the commandline	ioparm.timer     = 20;	ioparm.fileFlag  = NONE;	ioparm.suppFlag  = false;	ioparm.textFlag  = 0;	ioparm.filename  = "community.pairs";	ioparm.s_label   = "a";	time_t t1;	t1 = time(&t1);	time_t t2;	t2 = time(&t2);		// ----------------------------------------------------------------------	// Parse the command line, build filenames and then import the .pairs file	cout << "\nFast Community Inference.\n";	cout << "Copyright (c) 2004 by Aaron Clauset (aaron@cs.unm.edu)\n";	if (parseCommandLine(argc, argv)) {} else { return 0; }	cout << "\nimporting: " << ioparm.filename << endl;    // note the input filename	buildFilenames();								// builds filename strings	readInputFile();								// gets adjacency matrix data		// ----------------------------------------------------------------------	// Allocate data structures for main loop	a     = new double [gparm.maxid];	Q     = new double [gparm.n+1];	joins = new apair  [gparm.n+1];	for (int i=0; i<gparm.maxid; i++) { a[i] = 0.0; }	for (int i=0; i<gparm.n+1;   i++) { Q[i] = 0.0; joins[i].x = 0; joins[i].y = 0; }	int t = 1;	Qmax.y = -4294967296.0;  Qmax.x = 0;	if (ioparm.cutstep > 0) { groupListsSetup(); }		// will need to track agglomerations		cout << "now building initial dQ[]" << endl;	buildDeltaQMatrix();							// builds dQ[] and h		// initialize f_joins, f_support files	ofstream fjoins(ioparm.f_joins.c_str(), ios::trunc);	fjoins << -1 << "\t" << -1 << "\t" << Q[0] << "\t0\n";	fjoins.close();	if (ioparm.suppFlag) {		ofstream fsupp(ioparm.f_support.c_str(), ios::trunc);		dqSupport();		fsupp << 0 << "\t" << supportTot << "\t" << supportAve << "\t" << 0 << "\t->\t" << 0 << "\n";		fsupp.close();	}		// ----------------------------------------------------------------------	// Start FastCommunity algorithm	cout << "starting algorithm now." << endl;	tuple  dQmax, dQnew;	int isupport, jsupport;	while (h->heapSize() > 2) {		

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99这里都是精品| 久久国产婷婷国产香蕉| 成人动漫视频在线| 亚洲国产精品t66y| 97成人超碰视| 亚洲国产中文字幕在线视频综合| 欧美色老头old∨ideo| 日韩成人dvd| 精品剧情在线观看| 粉嫩高潮美女一区二区三区| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 亚洲美女少妇撒尿| 欧美在线999| 捆绑变态av一区二区三区| 欧美精品一区二| 99在线精品免费| 亚洲chinese男男1069| 欧美成人官网二区| aa级大片欧美| 日本特黄久久久高潮| 国产欧美日韩不卡免费| 91美女片黄在线观看| 日本vs亚洲vs韩国一区三区二区 | 亚洲视频在线一区二区| 欧美在线影院一区二区| 精品午夜一区二区三区在线观看| 国产精品美女一区二区在线观看| 欧美唯美清纯偷拍| 国产乱国产乱300精品| 一区二区三区欧美视频| 日韩欧美专区在线| a在线欧美一区| 日本视频一区二区三区| 国产精品美女久久久久久久 | 日韩欧美一区二区久久婷婷| 大胆欧美人体老妇| 天天综合色天天综合色h| 国产日韩精品一区二区三区在线| 欧美三级电影精品| 成人午夜激情影院| 七七婷婷婷婷精品国产| 中文字幕一区二| 精品国产a毛片| 欧美美女网站色| 91在线精品秘密一区二区| 九色综合狠狠综合久久| 亚洲国产日韩在线一区模特| 国产精品天天看| 久久影院电视剧免费观看| 欧美日韩精品一区二区三区蜜桃| 成人国产精品免费观看| 狠狠色狠狠色合久久伊人| 日日摸夜夜添夜夜添精品视频| 亚洲婷婷综合久久一本伊一区| www国产亚洲精品久久麻豆| 欧美精品成人一区二区三区四区| 91在线免费播放| 成人午夜视频在线观看| 国产呦精品一区二区三区网站| 日韩国产精品大片| 亚洲国产精品精华液网站| 亚洲欧美在线另类| 欧美国产综合一区二区| 精品久久一区二区三区| 日韩欧美国产午夜精品| 欧美裸体bbwbbwbbw| 欧美日韩精品系列| 欧美性感一区二区三区| 欧美午夜精品一区二区蜜桃| 色婷婷综合视频在线观看| 99久久久久免费精品国产 | 99久久99久久精品国产片果冻| 国内精品视频666| 蜜桃视频免费观看一区| 日韩不卡一区二区三区 | 欧美www视频| 欧美va亚洲va| 26uuu色噜噜精品一区二区| 日韩免费在线观看| 精品国产污污免费网站入口| 欧美xxx久久| 久久久亚洲国产美女国产盗摄| 欧美va亚洲va香蕉在线| 久久久精品蜜桃| 国产精品水嫩水嫩| 国产精品夫妻自拍| 一区二区三区视频在线观看| 亚洲伊人色欲综合网| 亚洲成av人片一区二区梦乃| 日韩福利视频网| 六月婷婷色综合| 国产一区亚洲一区| 不卡一二三区首页| 欧美性猛交xxxx乱大交退制版| 欧美日韩高清一区二区不卡| 日韩一级大片在线| 国产三级一区二区| 亚洲精品一二三| 日日骚欧美日韩| 国产一区二区三区黄视频| jizz一区二区| 欧美日韩一区不卡| www国产亚洲精品久久麻豆| 中文字幕欧美日本乱码一线二线| 亚洲欧美乱综合| 青娱乐精品视频| 风间由美性色一区二区三区| 色欧美片视频在线观看在线视频| 欧美日高清视频| 国产日产欧美一区| 亚洲图片欧美一区| 国产在线不卡一卡二卡三卡四卡| 99国产精品久久久久久久久久| 欧美日高清视频| 国产精品三级视频| 午夜伦欧美伦电影理论片| 精品一二三四区| 一本到高清视频免费精品| 日韩精品一区二区三区在线| 亚洲欧洲日产国产综合网| 奇米888四色在线精品| av一区二区三区在线| 日韩欧美综合一区| 一区二区三区中文在线观看| 麻豆精品国产传媒mv男同| 99精品视频一区二区三区| 欧美一级专区免费大片| 亚洲私人影院在线观看| 久久99久久久欧美国产| 在线观看一区二区精品视频| 国产视频一区在线播放| 日韩经典中文字幕一区| 色天使色偷偷av一区二区| 久久久国产精品麻豆| 日韩国产欧美一区二区三区| 色综合中文字幕| 日本一区二区三区四区| 久久成人精品无人区| 欧美日韩激情一区二区| 中文字幕一区二区三区在线观看 | 亚洲曰韩产成在线| 成人免费毛片高清视频| 日韩欧美亚洲国产精品字幕久久久| 亚洲欧美日韩国产成人精品影院| 国产麻豆一精品一av一免费 | 久久无码av三级| 视频一区二区中文字幕| 色综合久久久久综合99| 国产亚洲va综合人人澡精品| 久久精品国产一区二区三区免费看| 欧美日韩一级二级| 一区二区在线观看不卡| 99久久精品国产一区二区三区| 久久嫩草精品久久久久| 精品在线一区二区| 欧美一区二区三区公司| 天天操天天干天天综合网| 91美女在线视频| 国产精品精品国产色婷婷| 国产乱人伦偷精品视频不卡| 精品国产一区二区精华| 激情文学综合插| 精品久久国产97色综合| 激情综合五月天| 精品国产免费久久| 久久9热精品视频| 精品国产乱码久久久久久影片| 久久99国内精品| 亚洲欧美区自拍先锋| av在线播放不卡| 亚洲日本丝袜连裤袜办公室| 91首页免费视频| 亚洲一级二级三级在线免费观看| 91麻豆高清视频| 亚洲综合av网| 欧美日韩一级黄| 免费观看30秒视频久久| 精品国产乱码久久久久久免费| 久久99国产精品麻豆| 国产女同性恋一区二区| 白白色亚洲国产精品| 一区二区三区资源| 6080亚洲精品一区二区| 久久9热精品视频| 日本一区二区在线不卡| 91成人免费在线视频| 天天影视涩香欲综合网| 欧美成人综合网站| 成人一区二区三区在线观看| 亚洲免费观看高清完整版在线观看 | 成人av影院在线| 樱桃国产成人精品视频| 欧美一区二区三区在线观看视频| 精品一区二区三区免费观看| 欧美国产精品中文字幕| 欧美综合亚洲图片综合区| 日韩高清在线观看| 亚洲国产精品成人综合| 欧美日韩一级二级| 国产精品综合一区二区三区|