graphscope.nx.classes.function.degree_histogram¶ graphscope.nx.classes.function.degree_histogram(G)[源代码]¶ 返回每个度值出现频率的列表。 Parameters: G (Networkx 图) – 一个图 Returns: hist – 一个包含度数频率的列表。 度数值对应列表中的索引位置。 Return type: 列表 备注 注意:每个分箱宽度为1,因此列表长度(len(list))可能很大(与边数成正比)