(self, g: Graph)
| 8 | self.pe = pe |
| 9 | |
| 10 | def augment(self, g: Graph) -> Graph: |
| 11 | x, edge_index, edge_weights = g.unfold() |
| 12 | edge_index, edge_weights = dropout_adj(edge_index, edge_attr=edge_weights, p=self.pe) |
| 13 | return Graph(x=x, edge_index=edge_index, edge_weights=edge_weights) |