Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
53153b42
Unverified
Commit
53153b42
authored
Sep 12, 2023
by
peizhou001
Committed by
GitHub
Sep 12, 2023
Browse files
[Graphbolt] Fix sample bugs (#6311)
parent
337b5ea7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
python/dgl/graphbolt/impl/neighbor_sampler.py
python/dgl/graphbolt/impl/neighbor_sampler.py
+3
-3
No files found.
python/dgl/graphbolt/impl/neighbor_sampler.py
View file @
53153b42
...
@@ -102,14 +102,14 @@ class NeighborSampler(SubgraphSampler):
...
@@ -102,14 +102,14 @@ class NeighborSampler(SubgraphSampler):
self
.
replace
,
self
.
replace
,
self
.
prob_name
,
self
.
prob_name
,
)
)
reverse_
row
_node_ids
=
seeds
reverse_
column
_node_ids
=
seeds
seeds
,
compacted_node_pairs
=
unique_and_compact_node_pairs
(
seeds
,
compacted_node_pairs
=
unique_and_compact_node_pairs
(
subgraph
.
node_pairs
,
seeds
subgraph
.
node_pairs
,
seeds
)
)
subgraph
=
SampledSubgraphImpl
(
subgraph
=
SampledSubgraphImpl
(
node_pairs
=
compacted_node_pairs
,
node_pairs
=
compacted_node_pairs
,
reverse_column_node_ids
=
see
ds
,
reverse_column_node_ids
=
reverse_column_node_i
ds
,
reverse_row_node_ids
=
reverse_row_node_i
ds
,
reverse_row_node_ids
=
see
ds
,
)
)
subgraphs
.
insert
(
0
,
subgraph
)
subgraphs
.
insert
(
0
,
subgraph
)
return
seeds
,
subgraphs
return
seeds
,
subgraphs
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment