Max Product for Max-Weight Independent Set and Matching