This is the final subGraph method