This paper proposes a new car-following (CF) model to capture the realistic behaviors of connected and automated vehicles (CAVs), whose communication topology (CT) among vehicles is characterized by graph theory in the V2V communication environment. By considering the heterogeneous time delays under the fixed and switching CTs, a generalized CF model is proposed. Based on the Lyapunov–Krasovskii method, a convergence analysis has been implemented for this new CF model with multiple time delays to obtain the convergence condition. Meanwhile, provides an estimate of the time delay bound. Finally, numerical experiments are performed under three typical fixed CTs (i.e., PF topology, BDLF topology, and TPLF topology) and the corresponding switching topology. Results support that the proposed CF model is capable of accurately reproducing the velocity, acceleration, position, and space headway profiles of CAVs traffic flow.