Skip to content

Commit 867dbd2

Browse files
committed
fix typo
1 parent 1bdf429 commit 867dbd2

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

pgl/tests/test_graph_saint_sample.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
"""graph saint sample test"""
15-
14+
"""graph saint sample test
15+
"""
16+
from __future__ import division
17+
from __future__ import absolute_import
18+
from __future__ import print_function
19+
from __future__ import unicode_literals
1620
import unittest
21+
import numpy as np
1722

1823
import pgl
19-
import numpy as np
2024
import paddle.fluid as fluid
2125
from pgl.sample import graph_saint_random_walk_sample
2226

@@ -25,14 +29,14 @@ class GraphSaintSampleTest(unittest.TestCase):
2529
"""GraphSaintSampleTest"""
2630

2731
def test_randomwalk_sampler(self):
28-
"""test_scatter_add"""
32+
"""test_randomwalk_sampler"""
2933
g = pgl.graph.Graph(
3034
num_nodes=8,
3135
edges=[(1, 2), (2, 3), (0, 2), (0, 1), (6, 7), (4, 5), (6, 4),
3236
(7, 4), (3, 4)])
3337
subgraph = graph_saint_random_walk_sample(g, [6, 7], 2)
34-
print('reinded', subgraph._from_reindex)
35-
print('sub_edges', subgraph.edges)
38+
print('reindex', subgraph._from_reindex)
39+
print('subedges', subgraph.edges)
3640
assert len(subgraph.nodes) == 4
3741
assert len(subgraph.edges) == 4
3842
true_edges = np.array([[0, 1], [2, 3], [2, 0], [3, 0]])

0 commit comments

Comments
 (0)