|
|
@@ -4,16 +4,18 @@ Makes a dummy post to the test server |
|
|
import requests |
|
|
import requests |
|
|
import json |
|
|
import json |
|
|
import abp |
|
|
import abp |
|
|
|
|
|
import random |
|
|
|
|
|
|
|
|
#URL = "http://localhost:5000" |
|
|
#URL = "http://localhost:5000" |
|
|
URL = "https://abv.peteshadbolt.co.uk/" |
|
|
URL = "https://abv.peteshadbolt.co.uk/" |
|
|
|
|
|
|
|
|
def test_graph(): |
|
|
def test_graph(): |
|
|
N = 100 |
|
|
|
|
|
|
|
|
N = 50 |
|
|
g = abp.NXGraphState(range(N)) |
|
|
g = abp.NXGraphState(range(N)) |
|
|
|
|
|
|
|
|
for i in range(N-1): |
|
|
|
|
|
g.act_cz(i, i+1) |
|
|
|
|
|
|
|
|
for i in range(N): |
|
|
|
|
|
g.act_cz(random.randint(0, N-1), random.randint(0, N-1)) |
|
|
|
|
|
|
|
|
g.layout() |
|
|
g.layout() |
|
|
return g |
|
|
return g |
|
|
|
|
|
|
|
|
|