⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mexgraphflowhierarchy.m

📁 复杂网络的一些节点面对攻击的代码
💻 M
字号:
function FlowHierarchy = mexGraphFlowHierarchy(Graph,MaxDeapth)
% Builds node hierarchy such that nodes are only linked to nodes with smaller degrees. 
% For example, Nodes with no outgoing links will have flow hierarvhy score of 0; nodes, pointing to nodes
% with score 0 only will have score 1. Nodes, which can not be ordered in this hierarchy have score of NaN.
% The function always scans the directed network in original direction. To reverse it, apply GraphReverseLinks.m 
%
% Receives:
%	Graph			-	Graph Struct	-	The same graph with node numbers re-enumerated
%	MaxDeapth		-	integer			-	(optional) Deturmins the maximal score. Used to limit search time in huge graphs. Default: inf
%	
% Returns:
%	FlowHierarchy	-	struct			-	The struct, containing Flow Hierarchy Score for each node:
%							FlowHierarchy.Node		-	vector of integers	-		for each node in graph, it's index
%							FlowHierarchy.Score		-	vector of integers	-		for each node in graph, it's score
%							FlowHierarchy.k			-	vector of integers	-		list of all available scores (0<=k<=MaxDeapth<inf)
%							FlowHierarchy.Hist		-	vector of integers	-		for each score k, the number of nodes having this score
%							FlowHierarchy.Average	-	real scalar			-		Weighted Average Score. Does not consider nodes with score NaN.
%
% Created:																							
%		Lev Muchnik,	06/05/2005
%		lev@topspin.co.il, +972-54-326496																							
% Major Update:  
%

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -