The randomization procedure. (a) Extended node degree and edge profile. Nodes represent proteins; black, bidirected edges represent PPIs; and red, directed edges represent TRIs. Extended node degrees: a, one PPI, one outgoing TRI, and two ingoing TRIs; b, two PPIs and one outgoing TRI; c, one PPI and one outgoing TRI; d, two PPIs, one outgoing TRI, and two ingoing TRIs. Examples for edge profiles: (a,b), one PPI and one ingoing TRI; (b,a), one PPI and one outgoing TRI; (a,d), one outgoing TRI and one ingoing TRI; (b,d), one PPI. The edge profile of (d,c) is equivalent to that of (a,b). (b) The four-point-switchability condition. If edge profile (s1,t1) = edge profile (s2,t2) and edge profile (s1,t2) = edge profile (s2,t1), then edges can be switched as exemplified. For clarity, each edge color represents a type of edge profile. Note that if (s1,t1; s2,t2) are switchable, then so are (s1,t2;s2,t1), (t1,s1;t2,s2), and (t2,s1;t1,s2). Switch-ability is considered only for cases in which all four nodes are distinct and at least one edge profile is not empty.