torch_geometric.transforms.TwoHop

class TwoHop[source]

Bases: BaseTransform

Adds the two hop edges to the edge indices (functional name: two_hop).