我有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
有人可以帮助我吗?