networkcommons.methods.keep_observable_neighbours

networkcommons.methods.keep_observable_neighbours(target_dict, graph)

This function filters out nodes from a dictionary of target nodes that are not observable from the graph.

Parameters: - target_dict: A dictionary of target nodes. - graph: A NetworkX graph.

Returns: - A dictionary of target nodes that are observable from the graph.