grinpy.functions.neighborhoods.common_neighbors¶
-
grinpy.functions.neighborhoods.
common_neighbors
(G, nodes)¶ Returns a list of all nodes in G that are adjacent to every node in nodes.
Parameters: - G (NetworkX graph) – An undirected graph.
- nbunch – A single node or iterable container
Returns: All nodes adjacent to every node in nbunch. If nbunch contains only a single node, that nodes neighborhood is returned.
Return type: list