Inherit directory context to subgraphs