Affine Distance-transitive Graphs with Quadratic forms