I wrote two methods to sort/traverse a file in Stanford SNAP file format. Each data element is a pair of numbers (edges of a graph). The objective is to return the size of the data set after excluding duplicates of several forms. The sba function uses sets to do the work while the vba function uses vectors.