def _community(G, u, community):
    """Get the community of the given node."""
    node_u = G.node[u]
    try:
        return node_u[community]
    except __HOLE__:
        raise nx.NetworkXAlgorithmError('No community information')
dataset/ETHPy150Open networkx/networkx/networkx/algorithms/link_prediction.py/_community