Large margin classifier with graph-based adaptive regularization