Diameters Of Graphs Related To Groups And Base Sizes Of Primitive Groups