🌈 搜索
📅  最后修改于: 2022-03-11 14:56:53.383000             🧑  作者: Mango
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc >>> [n for n in G.neighbors(0)] [1]