Graph-based quadratic optimization: A fast evolutionary approach