📄 makel.m
字号:
% Make links of all the pairs of nodes. % Some heuristics might be added latter.function L = makeL(coord) N = size(coord,1); L = zeros(N*(N-1),2); for i=1:N*(N-1) si = floor((i-1)/(N-1))+1; di = mod(i-1,N-1)+1; if di >= si di = di+1; end L(i,:) = [si,di]; end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -