Quantum graph models for transport in filamentary switching