torch_geometric.data.EdgeAttr
- class EdgeAttr(edge_type: Tuple[str, str, str], layout: EdgeLayout, is_sorted: bool = False, size: Optional[Tuple[int, int]] = None)[source]
Bases:
CastMixinDefines the attributes of a
GraphStoreedge. It holds all the parameters necessary to uniquely identify an edge from theGraphStore.Note that the order of the attributes is important; this is the order in which attributes must be provided for indexing calls.
GraphStoreimplementations can define a different ordering by overridingEdgeAttr.__init__().