Tamer of complex graphs and even galaxies

View project on GitHub

Visualize code dependencies (.NET only)

You can generate a graph showing your code dependencies using the “Package dependencies” tool.

Use the “Package Spec Editor” to specify which assemblies to analyze and which high level structure your system has.

An initial package spec can look like this:

<?xml version="1.0" encoding="utf-16"?>
<SystemPackaging AssemblyRoot="." xmlns="">
    <Package Name="Plainion.Foundations">
            <Cluster Name="UI">
                <Include Pattern="Plainion.Windows.*" />
                <Include Pattern="Plainion.Prism.*" />
            <Cluster Name="Core">
                <Include Pattern="*" />
                <Exclude Pattern="Plainion.Windows.*" />
                <Exclude Pattern="Plainion.Prism.*" />
        <Include Pattern="Plainion.Core.dll" />
        <Include Pattern="Plainion.Windows.dll" />
        <Include Pattern="Plainion.Prism.dll" />
    <Package Name="Prism">
            <Cluster Name="Prism">
                <Include Pattern="*" />
        <Include Pattern="Prism.*.dll" />
    <Package Name="Plaionion.GraphViz">
            <Cluster Name="CodeInspection">
                <Include Pattern="*CodeInspection*" />
            <Cluster Name="Documents">
                <Include Pattern="*.Documents.*" />
        <Include Pattern="Plainion.GraphViz.*dll" />

A package is specified by a set of assemblies which can be defined using “include” and “exclude” directives. A package can have one or more clusters which would then be mapped to Clusters in the graph. The “include” and “exclude” directives within a cluster map to namespaces.

You can then either analyze the dependencies between packages by selecting the packages of interest or within one package by just selecting a particular one.

If you don’t have specified any clusters within your packages you can select “Create clusters for namespaces” to generate clusters automatically, one for each namespace.

When clicking “Create graph” you will get graphs similar to the ones below - depending on the dependency structure in your code base of course.


Graphs generated from code dependencies will follow the following conventions:

  • Blue edges: inheritance or interface implementation
  • Black edges: method calls
  • Gray edges: everything else (e.g. usage of cast operators)