@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        NeuronPair that = (NeuronPair) o;
        if (n2.equals(that.n2) && n1.equals(that.n1)) return true;
        if (n2.equals(that.n1) && n1.equals(that.n2)) return true;

        return false;
    }