You can use json_graph.tree_data() to output the data in a nested format. From the documentation from networkx.readwrite import json_graph ...
確定! 回上一頁