Optimizing quadratic forms of adjacency matrices of - Chi