Added Subgrpah and related test.