Add support for subgraphs.
Updated readme with sample.
Bump version.