def make_graph(path):
    G = nx.DiGraph()
    with open(path, 'r') as f:
        lines = f.readlines()
        sample_nums = int((len(lines) * 6e-05))
        lines = random.sample(lines, sample_nums)
        lines = [line.strip() for line in lines]
        for line in lines:
            edge_node = line.split('\t')
            source = int(edge_node[0])
            target = int(edge_node[1])
            G.add_edge(source, target)
    return G
def make_graph(path):
    G = nx.DiGraph()
    with open(path, 'r') as f:
        lines = f.readlines()
        sample_nums = int((len(lines) * 6e-05))
        lines = random.sample(lines, sample_nums)
        lines = [line.strip() for line in lines]
        for line in lines:
            edge_node = line.split('\t')
            source = int(edge_node[0])
            target = int(edge_node[1])
            G.add_edge(source, target)
    return G