- 博客(2)
- 资源 (3)
- 收藏
- 关注
原创 2021-10-24
DataSourceimport networkx as nximport numpy as npclass DataSource(object): def __init__(self,filename,n): self.filename = filename self.n = n self.G ={} def getGraph(self): self.G = nx.Graph() H = nx.pat
2021-10-24 18:50:01 2556
原创 结点重要性与SIR模型基础代码
SIR模型# simulate the information diffusion under SI modelimport networkx as nximport numpy as npimport randomimport matplotlib .pyplot as pltmax_iter_num = 25g = nx.karate_club_graph()# init the graph with random edge weight and set the inactive s
2021-10-16 12:22:59 648 2
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人