Dateien nach "mod/butadien" hochladen
This commit is contained in:
@@ -20,6 +20,8 @@ with open('014_dg_0_11100.dot', 'r') as file:
|
||||
educt = re.findall("(?<= ')(.*?)(?=' )", educts)
|
||||
products = re.findall("(?<='r_\\{[0-1]\\}', \\{)(.*?)(?=\\ })", edge)[0]
|
||||
product = re.findall("(?<= ')(.*?)(?=')", products)
|
||||
if product == educt:
|
||||
continue
|
||||
HYPERGRAPH[index] = (educt, product)
|
||||
for outflow in re.findall("// id = [0-9]+, graphName = [A-Za-z0-9_,\\{\\} ']+", graph):
|
||||
index = int(re.findall("(?<=id = )(.*?)(?=,)", outflow)[0])
|
||||
|
||||
Reference in New Issue
Block a user