def toy_graph():
    G = nx.DiGraph()
    for i in range(1, 1000):
        tree = list(set(list(int_to_list(random.randint(1, i)))))
        for j in range(0, (len(tree) - 1)):
            G.add_edge(tree[j], tree[(j + 1)])
    for n in G:
        G.node[n]['name'] = n
    d = json_graph.node_link_data(G)
    json.dump(d, open('graph/graph.json', 'w'))
    http_server.load_url('graph/graph.html')
def toy_graph():
    G = nx.DiGraph()
    for i in range(1, 1000):
        tree = list(set(list(int_to_list(random.randint(1, i)))))
        for j in range(0, (len(tree) - 1)):
            G.add_edge(tree[j], tree[(j + 1)])
    for n in G:
        G.node[n]['name'] = n
    d = json_graph.node_link_data(G)
    json.dump(d, open('graph/graph.json', 'w'))
    http_server.load_url('graph/graph.html')