Deep learning long-range information in undirected graphs with wave networks