[BGL] How can I use vertex object rather than integer?