add support for in-degrees and out-degress in vertex
merge