graph-inspect/inspect-graph-comparison.ipynb: update
This commit is contained in:
parent
6ca1195ec5
commit
8ac5aa2cb3
1 changed files with 2 additions and 2 deletions
|
|
@ -33,8 +33,8 @@
|
|||
"case2 = '...'\n",
|
||||
"\n",
|
||||
"# Import the graph\n",
|
||||
"G1 = nx.read_graphml(f'../datasets/{case1}-dtc-graph.graphml')\n",
|
||||
"G2 = nx.read_graphml(f'../datasets/{case2}-dtc-graph.graphml')\n",
|
||||
"G1 = nx.read_graphml(f'../graph-construct/{case1}-dtc-graph.graphml')\n",
|
||||
"G2 = nx.read_graphml(f'../graph-construct/{case2}-dtc-graph.graphml')\n",
|
||||
"\n",
|
||||
"# Print nodes, edges and density of the graphs\n",
|
||||
"print(f'G1:\\nNodes: {G1.number_of_nodes()}\\nEdges: {G1.number_of_edges()}\\nDensity: {nx.density(G1):.5f}')\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue