drop proactive + analysis
This commit is contained in:
@@ -30,6 +30,8 @@ G_bom_str = pd.read_sql(
|
||||
G_bom = nx.adjacency_graph(json.loads(G_bom_str))
|
||||
pos = nx.nx_agraph.graphviz_layout(G_bom, prog="twopi", args="")
|
||||
node_labels = nx.get_node_attributes(G_bom, 'Name')
|
||||
# rename node 1
|
||||
node_labels['1'] = '解决方案'
|
||||
plt.figure(figsize=(12, 12), dpi=300)
|
||||
nx.draw_networkx_nodes(G_bom, pos)
|
||||
nx.draw_networkx_edges(G_bom, pos)
|
||||
|
||||
Reference in New Issue
Block a user