Sparse Implementation of Versatile Graph-Informed Layers