How do you draw wire frame lines from point to point?

I want to be able to draw from one point to another given it’s coordinates. I would be most gratefull. I am working on a proof for a theory on hamiltonian circuits and need to be able to draw from one point to another ultimately to create a 3D, wireframe graph.
thanks!

glBegin(GL_LINES)
glVertex3(START_POSITION)
glVertex3(END_POSITION)
glEnd()