就像标题里说的我有个属性错误。 这是我的代码:
from sympy import *
import numpy as np
import networkx as nx
G=nx.Graph()
with open ("testing.txt", "r") as myfile:
Matrice=eval(myfile.readline())
Matnum = np.array(np.array(Matrice))
Matnum = Matnum.astype(np.int, copy=False)
G.add_node(Matnum.shape[1])
for i in range(0,Matnum.shape[1]):
for j in range(i+1,Matnum.shape[1]):
if Matnum[i,j] == 1:
G.add_edge(i,j)
print nx.max_clique(G)
关于信息,阅读线是由另一个脚本创建的矩阵:
^{pr2}$你有解决办法吗? 厚度
您应该增加堆空间
好书From Java code to Java heap
如果您考虑上面的表开销为^ {CD1>}记录到大约^ {< CD2>},那么您的最小堆大小必须在^ {< CD3>}/P>
以及改变堆大小,考虑将“压缩”(编码)键存储为填充二进制,而不是String。
每个IP地址可以存储为4个字节。端口号(如果是这样的话)每个是2个字节。协议可能存储为一个字节或更少
这是13个字节,而不是作为UTF16字符串存储的70个字节,如果我的数学在晚上这个时候是正确的,那么键的内存将减少5倍
相关问题 更多 >
编程相关推荐