A layout algorithm for undirected compound graphs