| Initialize 〈 Graph 〉 Independent Model |
| For 〈 Order k 〉 from 2 to n |
| For all nonexisting kth-order edges → 〈 Cset 〉 |
| Do estimate the 〈 Entropy Distance 〉 for adding an edge from 〈 Cset 〉 |
| If min{〈 Entropy Distance for 〉 〈 Cset 〉} < 〈{ 〈 Entropy Distance 〉 for 〈 Graph 〉} |
| Then add edge to 〈 Graph 〉 |
| End Search if no edges decrease the 〈 Entropy Distance 〉 |