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

📄 connected_components.m

📁 The tca package is a Matlab program that implements the tree-dependent component analysis (TCA) alg
💻 M
字号:
function [components,var_comp_matrix]=connected_components(G);
EG=expm(G);
N=length(G);
not_in_a_component=ones(1,N);

k=1;
while (k<=N)
    ind=find(not_in_a_component);
    if isempty(ind), break; end
    var_comp_matrix(:,k)=(EG(:,ind(1))>0);
    components{k}=find(var_comp_matrix(:,k));
    not_in_a_component(components{k})=0;
    k=k+1;
end

⌨️ 快捷键说明

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