Structured layers in (graph) neural networks