Check out Suhail Dutta's Channel 9 video/demo of the Architecture Explorer and DGML documents.  He starts with Directed Graph via the Architecture Explorer then goes into the Sequence Designer (generating UML sequences from code) and Layer Designer (validating design intent against implementation).  These two feature both heavily depend upon the Architecture Explorer's data model (a directed graph of the software artifacts and their relationships) to peer into the code and surmise the high-level information being presented.  He even shows the command line version of Layer Validation via MSBuild.