diff --git a/graphx/src/main/scala/org/apache/spark/graphx/package.scala b/graphx/src/main/scala/org/apache/spark/graphx/package.scala
index e6877d3195eb01d2ff96684045e58c592299841a..2501314ca85469b06791e25bfa906ba47ce9cf5d 100644
--- a/graphx/src/main/scala/org/apache/spark/graphx/package.scala
+++ b/graphx/src/main/scala/org/apache/spark/graphx/package.scala
@@ -8,8 +8,8 @@ package object graphx {
   // TODO: Consider using Char.
   type PartitionID = Int
 
-  type VertexSet = OpenHashSet[VertexID]
+  private[graphx] type VertexSet = OpenHashSet[VertexID]
 
-  /** * Returns the default null-like value for a data type T. */
-  def nullValue[T] = null.asInstanceOf[T]
+  /** Returns the default null-like value for a data type T. */
+  private[graphx] def nullValue[T] = null.asInstanceOf[T]
 }