Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def create_vars(self):
vars ={}
print('===========MAPPINGS==============')
for i, edge in enumerate(self.graph.edges.data()):
e=(edge[0],edge[1])
print(f'edge: {e} \t data: {edge[2]}')
label = f'({edge[0]}, {edge[1]})'
vars[e] = Binary(label)
return vars