generate input for kl, MAX_BANDWIDTH -> MAX_EDGE_WEIGHT