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:
CastMixin定义
GraphStore边的属性。 它包含从GraphStore中唯一标识一条边所需的所有参数。请注意,属性的顺序很重要;这是索引调用时必须提供属性的顺序。
GraphStore实现可以通过重写EdgeAttr.__init__()来定义不同的顺序。