A relation between structure and pair potential for liquid metals