结果立即消失-python中的SNAP

时间:2018-09-18 17:26:01

标签: python command-prompt

我有SNAP的这段代码,但运行后立即关闭,因此看不到结果。

import snap

Graph = snap.GenRndGnm(snap.PNGraph, 100, 1000)

snap.PlotKCoreNodes(Graph, "example", "Directed graph - k-core nodes")

UGraph = snap.GenRndGnm(snap.PUNGraph, 100, 1000)

snap.PlotKCoreNodes(UGraph, "example", "Undirected graph - k-core nodes")

Network = snap.GenRndGnm(snap.PNEANet, 100, 1000)

snap.PlotKCoreNodes(Network, "example", "Network - k-core nodes")

另外,我有这个警告:重新加载的模块:_snap,snap

有人可以帮助我吗?

0 个答案:

没有答案