复杂网络工具包complex network package

上传者: Xiao_dai_0 | 上传时间: 2022-04-26 20:46:45 | 文件大小: 24.47MB | 文件类型: RAR
Complex Networks Toolbox for MatLab is designed to analyze large-scale graphs, model them, explore with simulations of dynamic processes and generate appealing and insightful layouts. example: function [BetweenneessCentrality, varargout]= GraphBetweennessCentrality(Graph,SourceNodes) % Computes betweenneess centrality of each node. % % Receives: % Graph - Graph Struct - the graph loaded with GraphLoad % SourceNodes - array of double - (optional) nodes, from which passes start. Default: [] (all nodes). % % Returns: % BetweenneessCentrality - array of double - Betweenneess Centrality for each node. % Nodes - array of double - (optional)List of all nodes for which betweennessn centrality is computed % % Algorithm: % http://www.boost.org/libs/graph/doc/betweenness_centrality.html % % See Also: % mexGraphAllNodeShortestPasses % warning('Use the more optimized mexGraphBetweennessCentrality.dll'); error(nargchk(1,2,nargin)); error(nargoutchk(0,2,nargout)); if ~exist('SourceNodes') | isempty(SourceNodes) SourceNodes = unique(Graph.Data(:,1)); end Nodes = unique(Graph.Data(:,1:2)); %TotalPasses = zeros(GraphCountNumberOfNodes(Graph),GraphCountNumberOfNodes(Graph)); Betweenness = zeros(GraphCountNumberOfNodes(Graph),1); for Node = Nodes(:).' [ShortesPasses PassesHistogram]= mexGraphAllNodeShortestPasses(Graph,Node); %TotalPasses = TotalPasses + sum(PassesHistogram(2:end)); tic for i = 1 : numel(ShortesPasses) %T = ShortesPasses(i).Passes(end); %TotalPasses(Node,ShortesPasses(i).Passes(end)) = size(ShortesPasses(i).Passes,2); % compute total number of shortes passes from Node to some other node. Passes = ShortesPasses(i).Passes(2:end-1,:); NodesOnTheWay = unique(Passes); if numel(NodesOnTheWay)==1 Count = 1; % hist behaves differently in this case. else Count = hist(Passes(:),NodesOnTheWay);

文件下载

资源详情

[{"title":"( 229 个子文件 24.47MB ) 复杂网络工具包complex network package","children":[{"title":"mexGraphFlowHierarchy.mexw32 <span style='color:#111;'> 107.50KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 391B </span>","children":null,"spread":false},{"title":"GraphKShell.m <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"GraphPlotNodesDegreeDistribution.m <span style='color:#111;'> 7.11KB </span>","children":null,"spread":false},{"title":"mexGraphBetweennessCentrality.mexw32 <span style='color:#111;'> 114.50KB </span>","children":null,"spread":false},{"title":"......","children":null,"spread":false},{"title":"<span style='color:steelblue;'>文件过多,未全部展示</span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明