Undirected graphs realizable as graphs of modular lattices