I have a networkx graph g that has edges with weights, and I want to get all the edges along with their weights that are linked to a given node, say node 1. I know that I can do something like g.edges(1), however this will only get the edges, but not actually their associated weight attributes.
In effect, I want to do something like g.edges().data() by only for edges linked to a give node, something like g.edges(1).data(), but that doesn't work. Is there a workaround for this, or do I have to do a manual search over all edges?