-
Notifications
You must be signed in to change notification settings - Fork 0
/
gplot.m
65 lines (56 loc) · 1.13 KB
/
gplot.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
%gplot plots all the measures calculated in GrowMeasures
%function gplot(co1)
col1=['.' c1]
subplot (4,2,1)
plot(s.cost,mean(s.arand,1),'.k');
hold on
plot(s.cost,mean(s.a,1),col1);
ylim([-0.5 1])
xlabel('Cost');
ylabel('a');
title 'Assortativity'
subplot (4,2,2)
plot(s.cost,mean(s.Mrand,1),'.k');
hold on
plot(s.cost,mean(s.M,1),col1)
ylim([-0.5 1])
xlabel('Cost');
ylabel('M');
title 'Modularity'
subplot (4,2,3)
plot(s.cost,mean(s.Crand,1),'.k')
hold on
plot(s.cost,mean(s.C,1),col1)
xlabel('Cost');
ylabel('C');
title 'Clustering Coef'
subplot (4,2,4)
plot(s.cost,mean(s.Lrand,1),'.k')
hold on
plot(s.cost,mean(s.L,1),col1)
xlabel('Cost');
ylabel('L');
title 'Path Length'
subplot (4,2,5)
plot(s.cost,ones(length(s.cost),1),'.k')
hold on
plot(s.cost,mean(s.Sigma,1),col1)
ylim([0 10])
xlabel('Cost');
ylabel('Sigma');
title 'Small-World Coef'
subplot (4,2,6)
plot(s.cost,mean(s.Erand,1),'.k');
hold on
plot(s.cost,mean(s.E,1),col1)
xlabel('Cost');
ylabel('E');
title 'Efficiency'
subplot (4,2,7)
plot(s.cost,mean(s.CErand,1),'.k');
hold on
plot(s.cost,mean(s.CE,1),col1)
ylim([0 0.6])
xlabel('Cost');
ylabel('CE');
title 'Cost Efficiency'