s for input vertices</p><div class="fullcomment"><div class="comment cmt"><p>Construct triple groups for input vertices</p><p>Subject-based triples groups: s-TG of vertex v\inV is a set of triples in which their subject is v
denoted by s-TG(v)= {(u,w)\(u,w)\inE, u = v}</p><p>Object-based triples groups: o-TG of vertex v\inV is a set of triples in which their object is v
denoted by s-TG(v)= {(u,w)\(u,w)\inE, w = v}</p><p>Subject-object-based triple groups: so-TG of vertex v\inV is a set of triples in which t