diff --git a/graphx/src/main/scala/org/apache/spark/graphx/Edge.scala b/graphx/src/main/scala/org/apache/spark/graphx/Edge.scala
index b3a2a2186236bb965947ed8dbac7f7cfbb6d37ae..85f27d2c8d479cb2c873ea19ce8b5d988df6241c 100644
--- a/graphx/src/main/scala/org/apache/spark/graphx/Edge.scala
+++ b/graphx/src/main/scala/org/apache/spark/graphx/Edge.scala
@@ -8,18 +8,13 @@ package org.apache.spark.graphx
  * @tparam ED type of the edge attribute
  */
 case class Edge[@specialized(Char, Int, Boolean, Byte, Long, Float, Double) ED] (
-  /**
-   * The vertex id of the source vertex
-   */
-  var srcId: VertexID = 0,
-  /**
-   * The vertex id of the target vertex.
-   */
-  var dstId: VertexID = 0,
-  /**
-   * The attribute associated with the edge.
-   */
-  var attr: ED = nullValue[ED]) extends Serializable {
+    /** The vertex id of the source vertex */
+    var srcId: VertexID = 0,
+    /** The vertex id of the target vertex. */
+    var dstId: VertexID = 0,
+    /** The attribute associated with the edge. */
+    var attr: ED = nullValue[ED])
+  extends Serializable {
 
   /**
    * Given one vertex in the edge return the other vertex.
diff --git a/graphx/src/main/scala/org/apache/spark/graphx/EdgeDirection.scala b/graphx/src/main/scala/org/apache/spark/graphx/EdgeDirection.scala
index 99910ab87b96a04bb83d06d160e5020c37c7b46b..05103f68830f7c38a2789fa16657e7f3aa4eeede 100644
--- a/graphx/src/main/scala/org/apache/spark/graphx/EdgeDirection.scala
+++ b/graphx/src/main/scala/org/apache/spark/graphx/EdgeDirection.scala
@@ -1,6 +1,5 @@
 package org.apache.spark.graphx
 
-
 /**
  * The direction of a directed edge relative to a vertex.
  */
@@ -18,18 +17,12 @@ sealed abstract class EdgeDirection {
 
 
 object EdgeDirection {
-  /**
-   * Edges arriving at a vertex.
-   */
+  /** Edges arriving at a vertex. */
   case object In extends EdgeDirection
 
-  /**
-   * Edges originating from a vertex
-   */
+  /** Edges originating from a vertex. */
   case object Out extends EdgeDirection
 
-  /**
-   * All edges adjacent to a vertex
-   */
+  /** All edges adjacent to a vertex. */
   case object Both extends EdgeDirection
 }