digraph Module {
    common -> { dep1, dep2 } [style=dashed,color=grey]
    dep1 -> common
    dep2 -> common
    dep3 -> { dep2, common }

    subgraph shared {
        shared [style=filled]
        shared -> { dep3, common }
    }

    subgraph unique {
        unique [style=filled]
        unique -> { common, dep2 }
    }
}
