msh_0.geometry.dofmap.links(i) returns vertex ids of the ith cell, e.g. it returns 3 integers for mesh with triangle elements. To use that with the following
I am sorry, but at the moment I am still working with version 0.6.0 as well. I have built an entire set of tools for vibroacoustics with it, and my daily work relies on it. I will port all the scripts to the most recent version, but I cannot promise when I will do that.