NDepend understands the concept of namespace group, but this concept is not queryable for now. Hence, the simplest way to obtain a graph with namespaces group, is to first visualize the namespace groups on the Dependency Matrix (by expanding the assemblies) and then export the Matrix's Code Elements to Graph, as shown in the pic below:
Enhancing namespaces groups and assemblies groups is something we'd like to propose in the future.