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

📄 mexgraphneighboursoverlap.m

📁 复杂网络的一些节点面对攻击的代码
💻 M
字号:
function [Overlap, Degrees1, Degrees2]= mexGraphNeighboursOverlap(Graph,NodeIDs1, NodeIDs2,Direction)
% Computes the ammount of overlapping neignours between each node in SourceNodeID and in DestinationNodeID
%
% Receives:
%	Graph			-	Graph Struct		-	Struct created with ObjectCreateGraph function (probanly called by GraphLoad).
%	NodeIDs1		-	vector of indeces	-	list of node IDs
%	NodeIDs2		-	vector of indeces	-	list of node IDs
%
%	Direction	-	string			-	(optional) Either 'direct', 'inverse' or 'both'. Case insensitive. The incoming or outgoing links are 
%										followed as a function of this parameter. Default: 'direct'
%
% Returns:
%	Overlap			-	numel(NodeIDs1) x numel(NodeIDs2) matrix of integers	-	Element Overlap(i,j) of the matrix contains the number of neighbours, common to nodes NodeIDs1(i) and NodeIDs2(j)
%	Degrees1		-	1xNodeIDs1, of integers									-	(optional) Degree (number of neighbours) of each element in NodeIDs1
%	Degrees2		-	1xNodeIDs2, of integers									-	(optional) Degree (number of neighbours) of each element in NodeIDs2
%
%Created:																							
%	Lev Muchnik,	16/05/2007
%	lev@topspin.co.il, +972-54-326496																							

⌨️ 快捷键说明

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