📅  最后修改于: 2022-03-11 14:45:43.156000             🧑  作者: Mango
代码示例1
import networkx as nx
graph = nx.Graph()
graph.add_node('a')
graph.nodes
# NodeView(('a',))
graph.remove_node('a')
# NodeView(())