mexgraphnoderemove.m

来自「复杂网络的一些节点面对攻击的代码」· M 代码 · 共 18 行

M
18
字号
function Graph = mexGraphNodeRemove(Graph,Nodes)
% Removes from the graph all links wich involve any of the 'Nodes'. Does not call mexGraphSqueeze. 
% Node names are left as well (can be easily removed with intersect with Nodes). 
% This method is much faster then the GraphNodeRemove, especially for large number of Nodes.
%
% Receives:
%	Graph			-	Graph Struct		-	The same graph with node numbers re-enumerated
%	Nodes			-	vector of integer	-	List of nodes to remove.
%	
% Returns:
%	Graph			-	Graph Struct		-	The same graph with node numbers re-enumerated
%
% Created:																							
%		Lev Muchnik,	07/08/2005
%		lev@topspin.co.il, +972-54-326496																							


⌨️ 快捷键说明

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