Skip to content

Commit 63459bb

Browse files
Missing file for the experiment.
1 parent 467459c commit 63459bb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

models/starComplexityERTest.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from starComplexity import starC
2+
3+
nodes=1000
4+
5+
out=open(f'ER-{nodes}.csv', 'w')
6+
print("id,C, bar{*}", file=out)
7+
for i in range(1000):
8+
links=int(nodes*(nodes-1)//2*starC.uni.rand())
9+
g=starC.randomERGraph(nodes, links)
10+
print(links,g.complexity(), g.starComplexity(),)
11+
print(i,links,g.complexity(), g.starComplexity(),sep=', ',file=out)

0 commit comments

Comments
 (0)