Statistical mechanical approach of complex networks with weighted links