(self, metapath,
add_self_loops=True,
**kwargs)
| 25 | |
| 26 | class WholeDataFlow(NeighborDataFlow): |
| 27 | def __init__(self, metapath, |
| 28 | add_self_loops=True, |
| 29 | **kwargs): |
| 30 | super(WholeDataFlow, self).__init__(num_hops=len(metapath), |
| 31 | add_self_loops=add_self_loops) |
| 32 | self.neighbor_type = metapath[0] |
| 33 | for n_type in metapath: |
| 34 | if not n_type == self.neighbor_type: |
| 35 | raise ValueError('Metapath should be the same in whole graph sampler.') |
| 36 | |
| 37 | def get_self_neighbors(self, n_id): |
| 38 | edge_src = [] |
nothing calls this directly
no outgoing calls
no test coverage detected