0001
0002
0003
0004
0005
0006
0007
0008 close all;
0009
0010
0011 FIG_SIZE = [0 0 1200 600];
0012 lineWidth = 3;
0013 markerSize = 10;
0014 markerScale = 1.5;
0015
0016 figure('name', 'nNewNode vs level', 'outerPosition', FIG_SIZE, 'color', 'w');
0017 hold on;
0018
0019 tmpNumNewNode = cellfun(@(x) mean(x(:)), ceNetwork.NumNewNodeMat);
0020 plot(0:7, tmpNumNewNode, 'lineWidth', lineWidth, 'marker', netMarker('CE'), ...
0021 'color', netColor('CE'), 'markerFace', netMarkerFace('CE'), ...
0022 'markerSize', markerSize);
0023
0024
0025 tmpNumNewNode = cellfun(@(x) mean(x(:)), cxNetwork.NumNewNodeMat);
0026 plot(0:7, tmpNumNewNode, 'lineWidth', lineWidth, 'marker', netMarker('CX'), ...
0027 'color', netColor('CX'), 'markerFace', netMarkerFace('CX'), ...
0028 'markerSize', markerSize * markerScale);
0029
0030
0031 tmpNumNewNodeList = zeros(REPEAT_TIMES, MAX_LEVEL);
0032 for iNet = 1:REPEAT_TIMES
0033 tmpNumNewNodeList(iNet, :) = ...
0034 cellfun(@(x) mean(x(:)), smallRingNet{iNet}.NumNewNodeMat);
0035 end
0036 plot(0:7, mean(tmpNumNewNodeList, 1), 'lineWidth', lineWidth, ...
0037 'color', netColor('SW'), 'marker', netMarker('SW'), ...
0038 'markerFace', netMarkerFace('SW'), 'markerSize', markerSize);
0039
0040
0041 tmpNumNewNodeList = zeros(REPEAT_TIMES, MAX_LEVEL);
0042 for iNet = 1:REPEAT_TIMES
0043 tmpNumNewNodeList(iNet, :) = ...
0044 cellfun(@(x) mean(x(:)), randNetwork{iNet}.NumNewNodeMat);
0045 end
0046 plot(0:7, mean(tmpNumNewNodeList, 1), 'lineWidth', lineWidth, ...
0047 'color', netColor('ER'), 'marker', netMarker('ER'), ...
0048 'markerFace', netMarkerFace('ER'), 'markerSize', markerSize * markerScale);
0049 hold off;
0050
0051 set(gca, 'FontName', 'Arial', 'FontSize', 18, 'lineWidth', 4, ...
0052 'FontWeight', 'bold');
0053 xlabel('Propagation level');
0054 ylabel('Number of new nodes');
0055 hL = legend('CE', 'CX', 'SW', 'ER', 'location', 'NorthEast');
0056 set(hL, 'box', 'off');
0057 box off;