application_vnd.jupyter.stderr_output_1.png
target_url = 'https://filebox.ece.vt.edu/~mhsiao/ISCAS89/s27.bench'
import urllib.request
outputs = []
inputs = []
for line in urllib.request.urlopen(target_url):
    l = line.decode('utf-8')
    if '=' in l:
        parse = l.split(' = ')
        outputs.append(parse[0])
        inputs.append(parse[1].split('(')[1].split(')')[0].split(', '))

print('edges\n')
n = len(outputs)
edges = []
for i in range(n):
    out = outputs[i]
    for j in range(n):
        if out in inputs[j]:
            edges.append([i + 1, j + 1])
            print(i + 1, '\t', j + 1)