All files should have a license and pragma defined in the top two lines of the file:
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.6.11;
- All imports must be explicit, importing only what is necessary from each file.
package bellmanford | |
import ( | |
"math" | |
) | |
// Graph represents a graph consisting of edges and vertices | |
type Graph struct { | |
edges []*Edge | |
vertices []uint |
Europe
import numpy as np | |
def imhist(im): | |
# calculates normalized histogram of an image | |
m, n = im.shape | |
h = [0.0] * 256 | |
for i in range(m): | |
for j in range(n): | |
h[im[i, j]]+=1 | |
return np.array(h)/(m*n) |