On rigidity and realizability of weighted graphs