2021-11-02
def _get_unique_neighs_list(self, nodes, num_sample=10): _set = set to_neighs = [self.adj_lists[int(node)] for node in nodes] # 获取目标节点集的所有邻居节点[[v0的邻居],[v1的邻居],[v2的邻居]] if not num_sample is None: # 如果num_sample为实数的话 _sample = random.sam
原创
2021-11-02 02:55:32 ·
250 阅读 ·
0 评论