GIRAPH-112: Use elements() properly in LongDoubleFloatDoubleVertex
Review Request #3287 - Created Dec. 21, 2011 and updated
As pointed out by YuanYua, the array returned by elements() cannot have its length used since the array contains all the elements currently stored in the mahout collections, even including invalid elements between size and capacity. Whenever possible I converted elements() into forEach(), forEachKey(), forEachPair(). Used size() in other cases. Fixed some formatting violations as well in LongDoubleFloatDoubleVertex.java.
Local unittests and MR unittests.