QAP Rand Matrix Swap

Randomly permutes an adjacency matrix, preserving the network it represents, as needed for QAP test.
333 Downloads
Updated 24 Mar 2011

View License

This function shuffles an adjacency matrix in a way that preserves the structure of the network it represents. It only shuffles the order of the nodes; in other words, if the fourth column swaps places with the fifth column, then the fourth row also swaps places with the fifth row. Every entry on the diagonal stays on the diagonal.

Cite As

Puck Rombach (2024). QAP Rand Matrix Swap (https://www.mathworks.com/matlabcentral/fileexchange/30848-qap-rand-matrix-swap), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0