<gh_stars>1-10
output = open("Connection_Table_temp.txt","w+")
for i in range(0,1023+1):
    for j in range(i,i+1024):
        if j < 0:
            j = j + 1024
        elif j > 1023:
            j = j - 1024
        if i != j:
            str="%d %d 2 100\n" %(i,j)
            output.write(str)

output = open("Connection_Table_temp.txt","w+")
for i in range(0,1023+1):
    for j in range(i,i+1024):
        if j < 0:
            j = j + 1024
        elif j > 1023:
            j = j - 1024
        if i != j:
            str="%d %d 2 100\n" %(i,j)
            output.write(str)