rustworkx.PyGraph.degree# PyGraph.degree(node, /)# 获取节点的度 Parameters: node (int) – 要查找入度信息的节点索引 Returns degree: 指定节点的入度 Return type: 整数