MCPcopy Create free account
hub / github.com/alibaba/euler / __init__

Method __init__

tf_euler/python/dataflow/whole_dataflow.py:27–35  ·  view source on GitHub ↗
(self, metapath,
                 add_self_loops=True,
                 **kwargs)

Source from the content-addressed store, hash-verified

25
26class 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 = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected