<jupyter_start><jupyter_text>Visualization using the Graphviz Library**Goal:** Visualize all (or some) of the DAG defining the LSHTC3 data.Source: https://graphviz.readthedocs.io/en/stable/examples.html Load the Data<jupyter_code>with open("./data/hierarchyWikipediaMedium.txt", 'r') as edges:
    lines = []
    for line in edges.readlines():
        line = line.rstrip('\r\n')
        line = line.split(' ')
        lines.append(line)
    print(lines[0:100])
from graphviz import Graph
g = Graph('G', filename='process.gv', engine='sfdp')
for edge in lines[6000:6100]:
    g.edge(edge[0], edge[1])
g.view()<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup