handle non-compound graphs