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

📄 fun_degree.m

📁 无标度网络的生成模型
💻 M
字号:
%% 计算链接矩阵中节点的度

%%输入:链接矩阵,输出:节点的度,列向量

function [Row_Degree , Mat_DegreeRelation] = Fun_Degree ( Net)

%% 将链接矩阵换算为两个节点无连边,则为0的格式
Mat_DegreeRelation = Net;
Int_Num = size(Net ,1);
for i=1:Int_Num
    for j= 1: Int_Num
        if Net(i, j) == Inf
            Mat_DegreeRelation(i,j) = 0;
        end 
    end 
end 

Row_Degree =  sum( Mat_DegreeRelation, 1);

⌨️ 快捷键说明

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