isgraph will exclude space.