Triplet extractor for obtaining triplets from a view graph

Change-Id: Id6473921ab2de6efd96168e5f57bff658fdfe4f2