A classical groupoid model for quantum networks (Logical Methods in Computer Science, 2019)