@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Neuron)) return false;

        Neuron neuron = (Neuron) o;
        return posX == neuron.posX && posY == neuron.posY && edges.equals(neuron.edges) && name.equals(neuron.name);

    }