Failing to figure out a way of iterating through all edges and create an adjacency tensor for the graph with the nodes, edges and labels below. Please help. Probably a nested fo