From the graph object consists of N nodes and E edges, I want to select n nodes and extract only the nodes(m) and edges directly connected to those nodes(selected n nodes).
Finally I want to get sub-graph with (n+m) nodes and their edge information.
How can I do this efficiently?
Thanks in advance.