Threshold Adaptation in Spiking Networks Enables Shortest Path Finding and Place Disambiguation