fixed small problem in dense vector graph constructor