Added some extra Subgraph API to help in building them.