Test GraphImpl.subgraph and fix bug

Thanks to @rxin for finding the bug in #79: https://github.com/amplab/graphx/pull/79/files#diff-6b119709f23509a7954b8348907e007eR74