graph-inspect/inspect-graph-comparison.ipynb: update

This commit is contained in:
Luc Bijl 2026-08-31 17:25:52 +02:00
parent 6ca1195ec5
commit 8ac5aa2cb3

View file

@ -33,8 +33,8 @@
"case2 = '...'\n", "case2 = '...'\n",
"\n", "\n",
"# Import the graph\n", "# Import the graph\n",
"G1 = nx.read_graphml(f'../datasets/{case1}-dtc-graph.graphml')\n", "G1 = nx.read_graphml(f'../graph-construct/{case1}-dtc-graph.graphml')\n",
"G2 = nx.read_graphml(f'../datasets/{case2}-dtc-graph.graphml')\n", "G2 = nx.read_graphml(f'../graph-construct/{case2}-dtc-graph.graphml')\n",
"\n", "\n",
"# Print nodes, edges and density of the graphs\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", "print(f'G1:\\nNodes: {G1.number_of_nodes()}\\nEdges: {G1.number_of_edges()}\\nDensity: {nx.density(G1):.5f}')\n",