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

📄 mexnodeneighbours.m

📁 复杂网络的一些节点面对攻击的代码
💻 M
字号:
function Neightbours = mexNodeNeighbours(Graph,NodeIDs,Distance,Direction)
% Returns the list of nodes being at the specified Distance from the Node when shortes pathes are considered
%
% Receive:
%	Graph		-	Graph Struct	-	Struct created with ObjectCreateGraph function (probanly called by GraphLoad).
%	NodeIDs		-	integer			-	the ID of the node for whitch the neighbours are searched.
%					vector			-	List of IDs, in this case cell array lists of neighbours is returned.
%	Distance	-	integer			-	The distance at witch to look. The computation time may increas with the distance dramatically
%	Direction	-	string			-	(optional) Either 'direct' or 'inverse'. Case insensitive. The incoming or outgoing links are 
%										followed as a function of this parameter. Default: 'direct'
%
%
%
% Returns: 
%	Neightbours	-	vector (Nx1)	-	If NodeID is scalar, a vector of unique Distance-Neighbour IDs is returned
%					cell array		-	If NodeID is vector, cell array is returned. Each cell contains a vector like in the case above.
% 
% See Also:%	ObjectCreateGraph , GraphLoad%																										
%Created:																							
%	Lev Muchnik,	04-05/06/04 (Tannenbush )
%	lev@topspin.co.il, +972-54-326496																							
%  
%
%

⌨️ 快捷键说明

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