rustworkx.PyGraph.get_node_data#
- PyGraph.get_node_data(node, /)#
返回给定节点索引的节点数据
- Parameters:
节点 (int) – 节点的索引
- Returns:
该节点设置的数据对象
- Return type:
强
- Raises:
IndexError – when an invalid node index is provided
返回给定节点索引的节点数据
节点 (int) – 节点的索引
该节点设置的数据对象
强
IndexError – when an invalid node index is provided