f6466c503e6fac43c18a884e553819278430955d,grakel/graph.py,,floyd_warshall,#Any#,1699
Before Change
// Calculation
for k in range(0, n):
for i in range(0, n):
for j in range(0, n):
if (dist[i, j] > dist[i, k] + dist[k, j]):
dist[i, j] = dist[i, k] + dist[k, j]
return dist
After Change
// Calculation
for k in range(adjacency_matrix.shape[0]):
for i in range(adjacency_matrix.shape[0]):
dist[i, :] = np.minimum(dist[i, :], dist[i, k] + dist[k, :])
return dist
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: ysig/GraKeL
Commit Name: f6466c503e6fac43c18a884e553819278430955d
Time: 2020-02-11
Author: alessio.martino@uniroma1.it
File Name: grakel/graph.py
Class Name:
Method Name: floyd_warshall
Project Name: mne-tools/mne-python
Commit Name: 717eedd5f9ce22431e40a15c378863de6730d3e8
Time: 2019-03-15
Author: larson.eric.d@gmail.com
File Name: mne/viz/raw.py
Class Name:
Method Name: _update_raw_data
Project Name: brilee/MuGo
Commit Name: 3f09a5c3431a0b259bd7310d8d3c9737ff514fa7
Time: 2016-10-24
Author: brian.kihoon.lee@gmail.com
File Name: features.py
Class Name:
Method Name: make_onehot