graph.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:PyGraphArt 作者: dnlcrl 项目源码 文件源码
def delta_plus(self, nodes):
        '''
        Returns the list of edges forwarding from a set of nodes
        '''
        bool_indices_head = np.array([x[0] in nodes for x in self.edges])
        bool_indices_tail = np.array([x[1] not in nodes for x in self.edges])
        bool_indices_edges = np.bitwise_and(
            bool_indices_head, bool_indices_tail)
        return self.edges[bool_indices_edges]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号