Improve Vc examples based on smatrix and genvector
Fix a crash when number of graph points is zero