Python networkx,如何更改节点大小?

Python networkx,如何更改节点大小?,python,networkx,Python,Networkx,我有一个简单的配置模型,我想更改图中节点的大小 我的代码是: import networkx as nx import matplotlib.pyplot as plt hosts = 100 H=nx.configuration_model([2]*hosts) nx.draw_random(H) 我尝试包含节点大小,但未定义,收到错误: TypeError: configuration_model() got an unexpected keyword argument 'node_si

我有一个简单的配置模型,我想更改图中节点的大小

我的代码是:

import networkx as nx
import matplotlib.pyplot as plt
hosts = 100
H=nx.configuration_model([2]*hosts)
nx.draw_random(H)

我尝试包含节点大小,但未定义,收到错误:

TypeError: configuration_model() got an unexpected keyword argument 'node_size'
如何更改节点的大小


非常感谢。

draw\u random

nx.draw_random(H, node_size=100)