Updated Javadoc and introduced weighted clique sum.