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

📄 mexgraphcreaterandomgraph.m

📁 复杂网络的一些节点面对攻击的代码
💻 M
字号:
function Graph = mexGraphCreateRandomGraph(NumberOfNodes,DistributionX,DistributionY,Directional)
% Generates a graph of given size and with the given node's degree distribution.
%
% Receives:
%   NumberOfNodes   -   integer, scalar -   approximate number of nodes in Graph
%   DistributionX   -   integers, vector-   list of degrees. 
%   DistributionY   -   floats, vector  -   list of probabilities to have node approprieate degree
%                                           must have the same number of elements as 'DistributionX'
%                                           Must not be normalized 
%	Directional	-	boolean, scalar	-		(optonal) Specifies whether the graph is directional or undirectional. Deafult: 1 (true).
%											Directional graphs generation is much faster.
%
% Returns:
%   Graph           -   struct, graph   -   Object created with ObjectGraphCreateRandomGraph an d containing the 
%                                           desired graph
% Example:
%   Graph = mexGraphCreateRandomGraph(1000,[1 : 200],[1 : 200].^-2);
% 
% See Also:
%	 ObjectCreateGraph
%
% Created:
%   Lev Muchnik    10/03/2006, Tel.: 972-054-4326496, lev@topspin.co.il, Boston, MA

⌨️ 快捷键说明

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