Added subgraph inheritance.