Curve through set points in 2d

How can I generate a curve if I have a set of points the curve should go through? I need an equation to generate vertices. Thanks.

Here's a great solution that works for me: Catmull-Rom algorithm implementation

Hope somebody finds this helpful!