I want to create edges using Networkx.I have a list of tuples that I extracted from my edge collection in arangodb.I want each two tuples become one tuple since each two shows an edge from one node of the graph to the other one. I do not know how to do this. I would appreciate it if you could help me with it. my list :
[('_from', 'account/10000022'), ('_to', 'customer/10000006'), ('_from', 'account/10000001'), ('_to', 'customer/10000008'), ('_from', 'account/10000034'), ('_to', 'customer/10000012'), ('_from', 'account/10000032'), ('_to', 'customer/10000011'), ('_from', 'account/10000027') ,('_to', 'customer/10000002')]
I want each two to become like this : [('_from', 'account/10000022'), ('_to', 'customer/10000006')]