Program to construct an independent set
Program to construct a linear forest