triangulation_rcm_test, a MATLAB code which calls triangulation_rcm(), which computes the reverse Cuthill-McKee reordering for nodes in a triangulation composed of 3-node or 6-node triangles.
The information on this web page is distributed under the MIT license.
triangulation_rcm, a MATLAB code which reads files describing a triangulation of nodes in 2D, and applies the Reverse Cuthill McKee (RCM) algorithm to produce a renumbering of the triangulation with a reduced bandwidth.
TEST3 works with a 3-node triangulation:
TEST6 works with a 6-node triangulation: