In NetworkX, nodes can be any hashable object¹ (except None) e.g. a number, ... And I also assigned labels for each node in the form of a dictionary.
確定! 回上一頁