# Loop to add many edges, update weights, add edges for other objects etc.
G.add_edge(userID1,userID2,key=objectID,weight=1)
My goal is to use the multigraph as a structure to store the data and then be able to extract subgraphs containing only edges sharing a common key, count how many users have relationships across object IDs, etc. These functions would (in my mind) require me to be able to access/report the key which defines the edge but G.edges(data=True)[0] doesn't report the key of a multi-edge.
How can I get the key for this edge reported so that I can do other calculations with itemgetter, etc.?
Thanks!
Brian
--
Brian C. Keegan
Ph.D. Student - Media, Technology, & Society
School of Communication, Northwestern University
Science of Networks in Communities, Laboratory for Collaborative Technology