intermediate version of the edge and vertex components