Mining patterns in graphs with multiple weights