Clean up raw cells
]
},
{
- "cell_type": "raw",
+ "cell_type": "markdown",
"metadata": {},
"source": [
+ "```\n",
"%%time\n",
"path = os.environ[\"OUT\"] + \"/item.large-cluster.gt\"\n",
"g = load_graph(path)\n",
"\n",
"pos = sfdp_layout(g)\n",
- "graph_draw(g, pos=pos, output_size=(1000, 1000))"
+ "graph_draw(g, pos=pos, output_size=(1000, 1000))\n",
+ "```"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
- "Visualization of the large connected component of the tutorial graph. The visualization illustrates the process we used to build the graph: we started at the `Arnold Schwarzenegger (Q2685)` and did a breath first expansion for 3 levels. Then we did a depth-first starting from the nodes representing classes to find the complete closure of the classes.\n",
+ "Visualization of the large connected component of the tutorial graph (393,704 edges). The visualization illustrates the process we used to build the graph: we started at the `Arnold Schwarzenegger (Q2685)` and did a breath first expansion for 3 levels. Then we did a depth-first starting from the nodes representing classes to find the complete closure of the classes.\n",
"\n",
"![Visualization of the tutorial graph](https://github.com/usc-isi-i2/kgtk-tutorial-files/blob/main/media/arnold-graph-vsualization.png?raw=true)"
]
]
},
{
- "cell_type": "raw",
+ "cell_type": "markdown",
"metadata": {},
"source": [
+ "```\n",
"%%time\n",
"path = os.environ[\"OUT\"] + \"/item.large-cluster.gt\"\n",
"g = load_graph(path)\n",
"\n",
"bv, be = betweenness(g)\n",
"be.a /= be.a.max() / 5\n",
- "graph_draw(g, vertex_fill_color=bv, edge_pen_width=be, output_size=(1500, 1500))"
+ "graph_draw(g, vertex_fill_color=bv, edge_pen_width=be, output_size=(1500, 1500))\n",
+ "```"
]
},
{
