(self, fanouts, metapath,
add_self_loops=True,
**kwargs)
| 25 | |
| 26 | class LayerwiseDataFlow(UniqueDataFlow): |
| 27 | def __init__(self, fanouts, metapath, |
| 28 | add_self_loops=True, |
| 29 | **kwargs): |
| 30 | super(LayerwiseDataFlow, self).__init__(num_hops=len(metapath), |
| 31 | add_self_loops=add_self_loops) |
| 32 | self.fanouts = fanouts |
| 33 | self.metapath = metapath |
| 34 | |
| 35 | def get_neighbors(self, n_id): |
| 36 | neighbors = [] |