FindIdsOfConnectedNodesInSubgraph: find Ids of connected nodes in subgraph
Description
Adds the IDs of the connected nodes in a subgraph to an existing list.
Given the IDs of connected nodes in the full network, this function will find
the corresponding IDs in the subgraph