double getEdgeSpeed() {
        switch (edge.getSpeed()) {
        case -2:
            return 0;
        case -1:
            return 0.3;
        case 1:
            return 3.0;
        case 2:
            return 50.0;
        }
        return 1.0;
    }