def draw_glowing_nodes(self, size):
for i in range(self.glow_iter):
glowsize = [ x + (6.0 * x * (i + 1) / self.glow_iter) for x in size]
nx.draw_networkx_nodes(self.g, self.pos, alpha=0.025, cmap='gist_rainbow',
node_color=self.colors, node_size=glowsize, linewidths=0)
nx.draw_networkx_nodes(self.g, self.pos, alpha=1.0, cmap='gist_rainbow',
node_color=self.colors, node_size=size, linewidths=0)
return
评论列表
文章目录