Just wondering if there is convenient networkx function that returns a list of edges connected to a given node (or nodes) (e.g. my_node_name) in a graph (e.g. <
my_node_name
You can use the method edges on a node for an un-directed graph:
edges
G.edges(['my_node_name'])
or the function edges
networkx.edges(G, ['my_node_name'])
But for directed graphs the above method will only give the out-edges; there you need to call and combine both in_edges() and out_edges().