摘要: 最近用Java写了个pagerank,发现最终算出来的PageRank值的和不是1,但是这个和应该是1的,所以就用python的networkx包中的PageRank算法做了一个测试:import osimport networkx as nxos.chdir('C:\\Users\\XXX\\Desktop\\')filename = 'Wiki-Vote.txt'G=nx.DiGraph()with open(filename) as file: for line in file: head, tail = [int(x) for x in line.spl 阅读全文
posted @ 2013-06-01 23:36 ttang 阅读(16163) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/2828255/how-do-i-increase-the-capacity-of-the-eclipse-output-consoleUnder Window > Preferences, go to the Run/Debug > Console section, then you should see an option "Limit console output." You can uncheck this or change the number in the "Conso 阅读全文
posted @ 2013-06-01 21:56 ttang 阅读(468) 评论(0) 推荐(0) 编辑