gigl.src.common.translators.RootedNodeNeighborhoodSample#
- class gigl.src.common.translators.training_samples_protos_translator.RootedNodeNeighborhoodSample(root_node, subgraph)#
Bases:
NamedTuple
- __add__(value, /)#
Return self+value.
- __class_getitem__()#
See PEP 585
- __contains__(key, /)#
Return key in self.
- __eq__(value, /)#
Return self==value.
- __ge__(value, /)#
Return self>=value.
- __getattribute__(name, /)#
Return getattr(self, name).
- __getitem__(key, /)#
Return self[key].
- __getnewargs__()#
Return self as a plain tuple. Used by copy and pickle.
- __gt__(value, /)#
Return self>value.
- __hash__()#
Return hash(self).
- __iter__()#
Implement iter(self).
- __le__(value, /)#
Return self<=value.
- __len__()#
Return len(self).
- __lt__(value, /)#
Return self<value.
- __mul__(value, /)#
Return self*value.
- __ne__(value, /)#
Return self!=value.
- static __new__(_cls, root_node: Node, subgraph: GbmlGraphDataProtocol)#
Create new instance of RootedNodeNeighborhoodSample(root_node, subgraph)
- __repr__()#
Return a nicely formatted representation string
- __rmul__(value, /)#
Return value*self.
- count(value, /)#
Return number of occurrences of value.
- index(value, start=0, stop=9223372036854775807, /)#
Return first index of value.
Raises ValueError if the value is not present.
- subgraph: GbmlGraphDataProtocol#
Alias for field number 1