What are the methods avaiable to draw lines in unreal engine?

Spline is a component and can have many points. For each pair of points, you will need a spline mesh component. For the white spline here:

You’d need 4 spline mesh component. They can (and should!) be added dynamically. Do look up tutorials - this is a topic that has been covered extensively.