Pseudo-magic graphs