- 9
- 0
- 约8.94千字
- 约 7页
- 2019-09-03 发布于江苏
- 举报
复杂网络聚类系数和平均路径长度计算的MATLAB源代码
申明:文章来自百度用户carrot_hy
复杂网络的代码总共是三个m文件,复制如下:
第一个文件,CCM_ClusteringCoef.m
function [Cp_Global, Cp_Nodal] = CCM_ClusteringCoef(gMatrix, Types)% CCM_ClusteringCoef calculates clustering coefficients.% Input:%?? gMatrix???? adjacency matrix%?? Types?????? type of graph: binary,weighted,directed,all(default).% Usage:%?? [Cp_Global, Cp_Nodal] = CCM_ClusteringCoef(gMatrix, Types) returns%?? clustering coefficients for all nodes Cp_Nodal and average clustering%?? coefficient of network Cp_Global.% Example:%?? G = CCM_TestGraph1(nograph);%?? [Cp_Global, Cp_Nodal] = CCM_ClusteringCoef(G);% Note:%?? 1) one node have vaule 0, while which only has a neighbour or none.%?? 2) The dircted network termed triplets that fulfill the follow condition %????? as non-vacuous: j-i-k and k-i-j,if dont satisfy with that as %????? vacuous, just like: j-i,k-i and i-j,i-k. and the closed triplets%????? only j-i-k == j-k and k-i-j == k-j.%?? 3) ALL type network code from Mika Rubinovs BCT toolkit.% Refer:%? [1] Barrat et al. (2004) The architecture of the complex weighted networks. %? [2] Wasserman,S.,Faust,K.(1994) Social Network Analysis: Methods and%????? Applications.%? [3] Tore Opsahl and Pietro Panzarasa (2009). Clustering in Weighted %????? Networks. Social Networks31(2).% See also CCM_Transitivity
% Written by Yong Liu, Oct,2007% Center for Computational Medicine (CCM),% National Laboratory of Pattern Recognition (NLPR),% Institute of Automation,Chinese Academy of Sciences (IACAS), China.% Revise by Hu Yong, Nov, 2010
% E-mail: % based on Matlab 2006a% $Revision: 1.0, Copywrite (c) 2007
error(nargchk(1,2,nargin,struct));if(nargin 2),??? Types = all;?? end
N = length(gMatrix);gMatrix(1:(N+1):end) = 0;%Clear self-edges
Cp_Nodal = zeros(N,1);?? %Preallocateswitch(upper(Types))case BINARY%Binary network?gMatrix = double(gMatrix 0);%Ensure binary network?for i = 1:N??????? neighbor = (gMatrix(i,:) 0);??????? Num????? = sum(neig
您可能关注的文档
- 增值税一般纳税人表.doc
- 增值税小规模纳税应纳税额的计算.ppt
- 增值税征税范围的般规定.docx
- 增值税的计算.方.ppt
- 增强体能的锻炼原和方法.ppt
- 增值税一般纳税人按月申报.ppt
- 增值税知识讲解().ppt
- 增强安全防范意识高自防自救能力200812(火灾案例、消(精).ppt
- 增强自我保护的意和能力.ppt
- 增强团队凝聚力拓培训方案—拓展培训.ppt
- (正式版)DB51∕T 1867-2014 《袋栽黑木耳生产技术规程》.docx
- (正式版)DB51∕T 2413-2023 《油橄榄密植丰产栽培技术规程》.docx
- (正式版)DB51∕T 2436-2017 《川菜东坡一品肉烹饪工艺技术规范》.docx
- (正式版)DB51∕T 2396-2017 《农村电子商务服务站(点)服务与管理规范》.docx
- (正式版)DB51∕T 2419-2017 《桢楠扦插育苗技术规程》.docx
- CN105145773B 一种无花果曲奇饼干及其制作方法 (江苏农林职业技术学院).docx
- CN105203825A 微测量电极的制作方法和热电势的测量方法及相关装置 (国家纳米科学中心).docx
- CN105137533B 一种啁啾光纤光栅及其制作方法 (南京航空航天大学).docx
- (正式版)DB51∕T 2453-2018 《巴山新居公共管理指南》.docx
- (正式版)DB51∕T 1892-2014 《川西北地区沙化土地治理技术规程》.docx
最近下载
- 高一必修一化学笔记总结.pdf VIP
- NCCN临床实践指南:子宫肿瘤(2026.v2)PPT课件.pptx VIP
- 2025年江西应用技术职业学院高职单招高职单招英语2016-2024年参考题库含答案解析.docx
- 《无机化学》电子教案.pdf VIP
- 孔子游春课件62260.ppt VIP
- 2025年江西应用技术职业学院单招笔试语文试题库含答案解析.docx VIP
- 2025年江西应用技术职业学院单招笔试综合素质试题库含答案解析.docx VIP
- 2025年江西应用技术职业学院单招《数学》题库试题附参考答案详解(突破训练).docx VIP
- The Mummy《木乃伊(1999)》完整中英文对照剧本.docx VIP
- 2026年江西应用技术职业学院单招职业技能考试模拟测试卷带答案解析.docx VIP
原创力文档

文档评论(0)