Definition:Weight Function (Network Theory)