Abstract
Algorithms useful in the construction of electron correlation models are collected alongside new developments for cases of high rank and sparsity. In the first part of this paper a Brandow diagram manipulation program is presented. The complementary second section describes a general-rank sparse contraction algorithm which exploits the permutational symmetries of many-fermion quantities. Several recently published local correlation models (perfect quadruples and perfect hextuples) were built using these codes. This paper should facilitate reproduction and extension of high-rank electron correlation models that combine truncation by level of substitution with truncation by locality, such as the number of entangled electron pairs.