Advanced Computing Platform for Theoretical Physics

commit大文件会使得服务器变得不稳定,请大家尽量只commit代码,不要commit大的文件。

Commit 861ae54a authored by Pengfei Zhou's avatar Pengfei Zhou

bp

parent b248c94e
......@@ -5,7 +5,7 @@ import numpy as np
from args import args
from compNB import return_opera
import networkx as nx
import random
def convert(filename,x):
with open(filename,'r') as f:
l=f.readlines()
......@@ -92,6 +92,7 @@ if __name__ =='__main__' :
beta=1
#graph = nx.random_regular_graph(3, n, seed=1)
n,edges=convert('Generated_graphs.20.03.g6',args.which)
if args.permutation:
randomindex=[i for i in range(n)]
random.shuffle(randomindex)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment