fba856cbbe5a634656361d8abc86630e6e9f9dfe,tests/core/test_utils.py,,test_normalize_adj,#,58

Before Change



def test_normalize_adj():
    node_list = list(pytest.G.nodes())
    Aadj = nx.adjacency_matrix(pytest.G, nodelist=node_list)
    csr = normalize_adj(Aadj)
    dense = csr.todense()
    assert 5 == pytest.approx(dense.sum(), 0.1)
    assert csr.get_shape() == Aadj.get_shape()

After Change



def test_normalize_adj():
    node_list = list(pytest.G.nodes())
    Aadj = pytest.G.to_adjacency_matrix()
    csr = normalize_adj(Aadj)
    dense = csr.todense()
    assert 5 == pytest.approx(dense.sum(), 0.1)
    assert csr.get_shape() == Aadj.get_shape()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: stellargraph/stellargraph
Commit Name: fba856cbbe5a634656361d8abc86630e6e9f9dfe
Time: 2019-12-12
Author: 52440942+geoffj-d61@users.noreply.github.com
File Name: tests/core/test_utils.py
Class Name:
Method Name: test_normalize_adj


Project Name: stellargraph/stellargraph
Commit Name: fba856cbbe5a634656361d8abc86630e6e9f9dfe
Time: 2019-12-12
Author: 52440942+geoffj-d61@users.noreply.github.com
File Name: tests/core/test_utils.py
Class Name:
Method Name: test_chebyshev_polynomial


Project Name: stellargraph/stellargraph
Commit Name: fba856cbbe5a634656361d8abc86630e6e9f9dfe
Time: 2019-12-12
Author: 52440942+geoffj-d61@users.noreply.github.com
File Name: tests/core/test_utils.py
Class Name:
Method Name: test_GCN_Aadj_feats_op


Project Name: stellargraph/stellargraph
Commit Name: fba856cbbe5a634656361d8abc86630e6e9f9dfe
Time: 2019-12-12
Author: 52440942+geoffj-d61@users.noreply.github.com
File Name: tests/core/test_utils.py
Class Name:
Method Name: test_rescale_laplacian


Project Name: stellargraph/stellargraph
Commit Name: fba856cbbe5a634656361d8abc86630e6e9f9dfe
Time: 2019-12-12
Author: 52440942+geoffj-d61@users.noreply.github.com
File Name: tests/core/test_utils.py
Class Name:
Method Name: test_normalized_laplacian