Skip to content

Commit

Permalink
Update subgraphx.rst
Browse files Browse the repository at this point in the history
Add a missing import of Data
  • Loading branch information
Michael1015198808 authored Feb 27, 2023
1 parent 55c40a7 commit 2728cda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/tutorials/subgraphx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Since the graph model is a two-layer GNN model, the information only aggregates
from dig.xgraph.method.subgraphx import PlotUtils
from dig.xgraph.method.subgraphx import MCTS
from torch_geometric.utils import to_networkx
from torch_geometric.data import Data
subgraph_x, subgraph_edge_index, subset, edge_mask, kwargs = \
MCTS.__subgraph__(node_idx, data.x, data.edge_index, num_hops=2)
Expand Down

0 comments on commit 2728cda

Please sign in to comment.