title: How to add edges between any two nodes on a condition?
body: <p>I have the following data set, variable &quot;factor&quot; denotes nodes, and variable &quot;percent&quot; is the attribute of the node. What I want to do is to create edges between all pairs of the nodes on the condition that the product of &quot;percent&quot; value of a pair is above a threshold.</p>
  <p>For instance, suppose I set the threshold as 0.05, then the edges will only be created between A and B, B and C, and A and C.
  Thanks.</p>
  <p>Factor: A, B, C, D, ...
  Percent: 0.4, 0.3, 0.2, 0.1</p>