update bvgraph2smat.cc