<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_51) on Wed Sep 16 15:55:12 PDT 2015 -->
<title>GraphImpl</title>
<meta name="date" content="2015-09-16">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="GraphImpl";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/spark/graphx/impl/EdgeRDDImpl.html" title="class in org.apache.spark.graphx.impl"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/spark/graphx/impl/VertexRDDImpl.html" title="class in org.apache.spark.graphx.impl"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/spark/graphx/impl/GraphImpl.html" target="_top">Frames</a></li>
<li><a href="GraphImpl.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.spark.graphx.impl</div>
<h2 title="Class GraphImpl" class="title">Class GraphImpl<VD,ED></h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">org.apache.spark.graphx.Graph</a><VD,ED></li>
<li>
<ul class="inheritance">
<li>org.apache.spark.graphx.impl.GraphImpl<VD,ED></li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>java.io.Serializable</dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">GraphImpl<VD,ED></span>
extends <a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><VD,ED>
implements scala.Serializable</pre>
<div class="block">An implementation of <a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx"><code>Graph</code></a> to support computation on graphs.
<p>
Graphs are represented using two RDDs: <code>vertices</code>, which contains vertex attributes and the
routing information for shipping vertex attributes to edge partitions, and
<code>replicatedVertexView</code>, which contains edges and the vertex attributes mentioned by each edge.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../serialized-form.html#org.apache.spark.graphx.impl.GraphImpl">Serialized Form</a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier</th>
<th class="colLast" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#GraphImpl(scala.reflect.ClassTag, scala.reflect.ClassTag)">GraphImpl</a></strong>(scala.reflect.ClassTag<<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>> evidence$3,
scala.reflect.ClassTag<<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>> evidence$4)</code>
<div class="block">Default constructor is provided to support serialization</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#GraphImpl(org.apache.spark.graphx.VertexRDD, org.apache.spark.graphx.impl.ReplicatedVertexView, scala.reflect.ClassTag, scala.reflect.ClassTag)">GraphImpl</a></strong>(<a href="../../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>> vertices,
org.apache.spark.graphx.impl.ReplicatedVertexView<<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>> replicatedVertexView,
scala.reflect.ClassTag<<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>> evidence$1,
scala.reflect.ClassTag<<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>> evidence$2)</code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><A> <a href="../../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a><A></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#aggregateMessagesWithActiveSet(scala.Function1, scala.Function2, org.apache.spark.graphx.TripletFields, scala.Option, scala.reflect.ClassTag)">aggregateMessagesWithActiveSet</a></strong>(scala.Function1<<a href="../../../../../org/apache/spark/graphx/EdgeContext.html" title="class in org.apache.spark.graphx">EdgeContext</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>,A>,scala.runtime.BoxedUnit> sendMsg,
scala.Function2<A,A,A> mergeMsg,
<a href="../../../../../org/apache/spark/graphx/TripletFields.html" title="class in org.apache.spark.graphx">TripletFields</a> tripletFields,
scala.Option<scala.Tuple2<<a href="../../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a><?>,<a href="../../../../../org/apache/spark/graphx/EdgeDirection.html" title="class in org.apache.spark.graphx">EdgeDirection</a>>> activeSetOpt,
scala.reflect.ClassTag<A> evidence$11)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <VD,ED> <a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="class in org.apache.spark.graphx.impl">GraphImpl</a><VD,ED></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#apply(org.apache.spark.rdd.RDD, VD, org.apache.spark.storage.StorageLevel, org.apache.spark.storage.StorageLevel, scala.reflect.ClassTag, scala.reflect.ClassTag)">apply</a></strong>(<a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><<a href="../../../../../org/apache/spark/graphx/Edge.html" title="class in org.apache.spark.graphx">Edge</a><ED>> edges,
VD defaultVertexAttr,
<a href="../../../../../org/apache/spark/storage/StorageLevel.html" title="class in org.apache.spark.storage">StorageLevel</a> edgeStorageLevel,
<a href="../../../../../org/apache/spark/storage/StorageLevel.html" title="class in org.apache.spark.storage">StorageLevel</a> vertexStorageLevel,
scala.reflect.ClassTag<VD> evidence$14,
scala.reflect.ClassTag<ED> evidence$15)</code>
<div class="block">Create a graph from edges, setting referenced vertices to `defaultVertexAttr`.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <VD,ED> <a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="class in org.apache.spark.graphx.impl">GraphImpl</a><VD,ED></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#apply(org.apache.spark.rdd.RDD, org.apache.spark.rdd.RDD, VD, org.apache.spark.storage.StorageLevel, org.apache.spark.storage.StorageLevel, scala.reflect.ClassTag, scala.reflect.ClassTag)">apply</a></strong>(<a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><scala.Tuple2<java.lang.Object,VD>> vertices,
<a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><<a href="../../../../../org/apache/spark/graphx/Edge.html" title="class in org.apache.spark.graphx">Edge</a><ED>> edges,
VD defaultVertexAttr,
<a href="../../../../../org/apache/spark/storage/StorageLevel.html" title="class in org.apache.spark.storage">StorageLevel</a> edgeStorageLevel,
<a href="../../../../../org/apache/spark/storage/StorageLevel.html" title="class in org.apache.spark.storage">StorageLevel</a> vertexStorageLevel,
scala.reflect.ClassTag<VD> evidence$18,
scala.reflect.ClassTag<ED> evidence$19)</code>
<div class="block">Create a graph from vertices and edges, setting missing vertices to `defaultVertexAttr`.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <VD,ED> <a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="class in org.apache.spark.graphx.impl">GraphImpl</a><VD,ED></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#apply(org.apache.spark.graphx.VertexRDD, org.apache.spark.graphx.EdgeRDD, scala.reflect.ClassTag, scala.reflect.ClassTag)">apply</a></strong>(<a href="../../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a><VD> vertices,
<a href="../../../../../org/apache/spark/graphx/EdgeRDD.html" title="class in org.apache.spark.graphx">EdgeRDD</a><ED> edges,
scala.reflect.ClassTag<VD> evidence$20,
scala.reflect.ClassTag<ED> evidence$21)</code>
<div class="block">Create a graph from a VertexRDD and an EdgeRDD with arbitrary replicated vertices.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#cache()">cache</a></strong>()</code>
<div class="block">Caches the vertices and edges associated with this graph at the previously-specified target
storage levels, which default to <code>MEMORY_ONLY</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#checkpoint()">checkpoint</a></strong>()</code>
<div class="block">Mark this Graph for checkpointing.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/graphx/impl/EdgeRDDImpl.html" title="class in org.apache.spark.graphx.impl">EdgeRDDImpl</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#edges()">edges</a></strong>()</code>
<div class="block">An RDD containing the edges and their associated attributes.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <VD,ED> <a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="class in org.apache.spark.graphx.impl">GraphImpl</a><VD,ED></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#fromEdgePartitions(org.apache.spark.rdd.RDD, VD, org.apache.spark.storage.StorageLevel, org.apache.spark.storage.StorageLevel, scala.reflect.ClassTag, scala.reflect.ClassTag)">fromEdgePartitions</a></strong>(<a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><scala.Tuple2<java.lang.Object,org.apache.spark.graphx.impl.EdgePartition<ED,VD>>> edgePartitions,
VD defaultVertexAttr,
<a href="../../../../../org/apache/spark/storage/StorageLevel.html" title="class in org.apache.spark.storage">StorageLevel</a> edgeStorageLevel,
<a href="../../../../../org/apache/spark/storage/StorageLevel.html" title="class in org.apache.spark.storage">StorageLevel</a> vertexStorageLevel,
scala.reflect.ClassTag<VD> evidence$16,
scala.reflect.ClassTag<ED> evidence$17)</code>
<div class="block">Create a graph from EdgePartitions, setting referenced vertices to `defaultVertexAttr`.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <VD,ED> <a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="class in org.apache.spark.graphx.impl">GraphImpl</a><VD,ED></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#fromExistingRDDs(org.apache.spark.graphx.VertexRDD, org.apache.spark.graphx.EdgeRDD, scala.reflect.ClassTag, scala.reflect.ClassTag)">fromExistingRDDs</a></strong>(<a href="../../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a><VD> vertices,
<a href="../../../../../org/apache/spark/graphx/EdgeRDD.html" title="class in org.apache.spark.graphx">EdgeRDD</a><ED> edges,
scala.reflect.ClassTag<VD> evidence$22,
scala.reflect.ClassTag<ED> evidence$23)</code>
<div class="block">Create a graph from a VertexRDD and an EdgeRDD with the same replicated vertex type as the
vertices.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>scala.collection.Seq<java.lang.String></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#getCheckpointFiles()">getCheckpointFiles</a></strong>()</code>
<div class="block">Gets the name of the files to which this Graph was checkpointed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#groupEdges(scala.Function2)">groupEdges</a></strong>(scala.Function2<<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>> merge)</code>
<div class="block">Merges multiple edges between two vertices into a single edge.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#isCheckpointed()">isCheckpointed</a></strong>()</code>
<div class="block">Return whether this Graph has been checkpointed or not.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><ED2> <a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,ED2></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#mapEdges(scala.Function2, scala.reflect.ClassTag)">mapEdges</a></strong>(scala.Function2<java.lang.Object,scala.collection.Iterator<<a href="../../../../../org/apache/spark/graphx/Edge.html" title="class in org.apache.spark.graphx">Edge</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>>>,scala.collection.Iterator<ED2>> f,
scala.reflect.ClassTag<ED2> evidence$6)</code>
<div class="block">Transforms each edge attribute using the map function, passing it a whole partition at a
time.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><A> <a href="../../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a><A></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#mapReduceTriplets(scala.Function1, scala.Function2, scala.Option, scala.reflect.ClassTag)">mapReduceTriplets</a></strong>(scala.Function1<<a href="../../../../../org/apache/spark/graphx/EdgeTriplet.html" title="class in org.apache.spark.graphx">EdgeTriplet</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>>,scala.collection.Iterator<scala.Tuple2<java.lang.Object,A>>> mapFunc,
scala.Function2<A,A,A> reduceFunc,
scala.Option<scala.Tuple2<<a href="../../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a><?>,<a href="../../../../../org/apache/spark/graphx/EdgeDirection.html" title="class in org.apache.spark.graphx">EdgeDirection</a>>> activeSetOpt,
scala.reflect.ClassTag<A> evidence$10)</code>
<div class="block">Aggregates values from the neighboring edges and vertices of each vertex.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><ED2> <a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,ED2></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#mapTriplets(scala.Function2, org.apache.spark.graphx.TripletFields, scala.reflect.ClassTag)">mapTriplets</a></strong>(scala.Function2<java.lang.Object,scala.collection.Iterator<<a href="../../../../../org/apache/spark/graphx/EdgeTriplet.html" title="class in org.apache.spark.graphx">EdgeTriplet</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>>>,scala.collection.Iterator<ED2>> f,
<a href="../../../../../org/apache/spark/graphx/TripletFields.html" title="class in org.apache.spark.graphx">TripletFields</a> tripletFields,
scala.reflect.ClassTag<ED2> evidence$7)</code>
<div class="block">Transforms each edge attribute a partition at a time using the map function, passing it the
adjacent vertex attributes as well.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><VD2> <a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><VD2,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#mapVertices(scala.Function2, scala.reflect.ClassTag, scala.Predef.$eq$colon$eq)">mapVertices</a></strong>(scala.Function2<java.lang.Object,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,VD2> f,
scala.reflect.ClassTag<VD2> evidence$5,
scala.Predef.$eq$colon$eq<<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,VD2> eq)</code>
<div class="block">Transforms each vertex attribute in the graph using the map function.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><VD2,ED2> <a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#mask(org.apache.spark.graphx.Graph, scala.reflect.ClassTag, scala.reflect.ClassTag)">mask</a></strong>(<a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><VD2,ED2> other,
scala.reflect.ClassTag<VD2> evidence$8,
scala.reflect.ClassTag<ED2> evidence$9)</code>
<div class="block">Restricts the graph to only the vertices and edges that are also in <code>other</code>, but keeps the
attributes from this graph.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><U,VD2> <a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><VD2,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#outerJoinVertices(org.apache.spark.rdd.RDD, scala.Function3, scala.reflect.ClassTag, scala.reflect.ClassTag, scala.Predef.$eq$colon$eq)">outerJoinVertices</a></strong>(<a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><scala.Tuple2<java.lang.Object,U>> other,
scala.Function3<java.lang.Object,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,scala.Option<U>,VD2> updateF,
scala.reflect.ClassTag<U> evidence$12,
scala.reflect.ClassTag<VD2> evidence$13,
scala.Predef.$eq$colon$eq<<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,VD2> eq)</code>
<div class="block">Joins the vertices with entries in the <code>table</code> RDD and merges the results using <code>mapFunc</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#partitionBy(org.apache.spark.graphx.PartitionStrategy)">partitionBy</a></strong>(<a href="../../../../../org/apache/spark/graphx/PartitionStrategy.html" title="interface in org.apache.spark.graphx">PartitionStrategy</a> partitionStrategy)</code>
<div class="block">Repartitions the edges in the graph according to <code>partitionStrategy</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#partitionBy(org.apache.spark.graphx.PartitionStrategy, int)">partitionBy</a></strong>(<a href="../../../../../org/apache/spark/graphx/PartitionStrategy.html" title="interface in org.apache.spark.graphx">PartitionStrategy</a> partitionStrategy,
int numPartitions)</code>
<div class="block">Repartitions the edges in the graph according to <code>partitionStrategy</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#persist(org.apache.spark.storage.StorageLevel)">persist</a></strong>(<a href="../../../../../org/apache/spark/storage/StorageLevel.html" title="class in org.apache.spark.storage">StorageLevel</a> newLevel)</code>
<div class="block">Caches the vertices and edges associated with this graph at the specified storage level,
ignoring any target storage levels previously set.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>org.apache.spark.graphx.impl.ReplicatedVertexView<<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#replicatedVertexView()">replicatedVertexView</a></strong>()</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#reverse()">reverse</a></strong>()</code>
<div class="block">Reverses all edges in the graph.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#subgraph(scala.Function1, scala.Function2)">subgraph</a></strong>(scala.Function1<<a href="../../../../../org/apache/spark/graphx/EdgeTriplet.html" title="class in org.apache.spark.graphx">EdgeTriplet</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>>,java.lang.Object> epred,
scala.Function2<java.lang.Object,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,java.lang.Object> vpred)</code>
<div class="block">Restricts the graph to only the vertices and edges satisfying the predicates.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><<a href="../../../../../org/apache/spark/graphx/EdgeTriplet.html" title="class in org.apache.spark.graphx">EdgeTriplet</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#triplets()">triplets</a></strong>()</code>
<div class="block">Return a RDD that brings edges together with their source and destination vertices.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#unpersist(boolean)">unpersist</a></strong>(boolean blocking)</code>
<div class="block">Uncaches both vertices and edges of this graph.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#unpersistVertices(boolean)">unpersistVertices</a></strong>(boolean blocking)</code>
<div class="block">Uncaches only the vertices of this graph, leaving the edges alone.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html#vertices()">vertices</a></strong>()</code>
<div class="block">An RDD containing the vertices and their associated attributes.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.spark.graphx.Graph">
<!-- -->
</a>
<h3>Methods inherited from class org.apache.spark.graphx.<a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a></h3>
<code><a href="../../../../../org/apache/spark/graphx/Graph.html#aggregateMessages(scala.Function1, scala.Function2, org.apache.spark.graphx.TripletFields, scala.reflect.ClassTag)">aggregateMessages</a>, <a href="../../../../../org/apache/spark/graphx/Graph.html#fromEdges(org.apache.spark.rdd.RDD, VD, org.apache.spark.storage.StorageLevel, org.apache.spark.storage.StorageLevel, scala.reflect.ClassTag, scala.reflect.ClassTag)">fromEdges</a>, <a href="../../../../../org/apache/spark/graphx/Graph.html#fromEdgeTuples(org.apache.spark.rdd.RDD, VD, scala.Option, org.apache.spark.storage.StorageLevel, org.apache.spark.storage.StorageLevel, scala.reflect.ClassTag)">fromEdgeTuples</a>, <a href="../../../../../org/apache/spark/graphx/Graph.html#graphToGraphOps(org.apache.spark.graphx.Graph, scala.reflect.ClassTag, scala.reflect.ClassTag)">graphToGraphOps</a>, <a href="../../../../../org/apache/spark/graphx/Graph.html#mapEdges(scala.Function1, scala.reflect.ClassTag)">mapEdges</a>, <a href="../../../../../org/apache/spark/graphx/Graph.html#mapTriplets(scala.Function1, scala.reflect.ClassTag)">mapTriplets</a>, <a href="../../../../../org/apache/spark/graphx/Graph.html#mapTriplets(scala.Function1, org.apache.spark.graphx.TripletFields, scala.reflect.ClassTag)">mapTriplets</a>, <a href="../../../../../org/apache/spark/graphx/Graph.html#ops()">ops</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="GraphImpl(org.apache.spark.graphx.VertexRDD, org.apache.spark.graphx.impl.ReplicatedVertexView, scala.reflect.ClassTag, scala.reflect.ClassTag)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GraphImpl</h4>
<pre>protected GraphImpl(<a href="../../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>> vertices,
org.apache.spark.graphx.impl.ReplicatedVertexView<<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>> replicatedVertexView,
scala.reflect.ClassTag<<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>> evidence$1,
scala.reflect.ClassTag<<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>> evidence$2)</pre>
</li>
</ul>
<a name="GraphImpl(scala.reflect.ClassTag, scala.reflect.ClassTag)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>GraphImpl</h4>
<pre>protected GraphImpl(scala.reflect.ClassTag<<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>> evidence$3,
scala.reflect.ClassTag<<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>> evidence$4)</pre>
<div class="block">Default constructor is provided to support serialization</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="apply(org.apache.spark.rdd.RDD,java.lang.Object,org.apache.spark.storage.StorageLevel,org.apache.spark.storage.StorageLevel,scala.reflect.ClassTag,scala.reflect.ClassTag)">
<!-- -->
</a><a name="apply(org.apache.spark.rdd.RDD, VD, org.apache.spark.storage.StorageLevel, org.apache.spark.storage.StorageLevel, scala.reflect.ClassTag, scala.reflect.ClassTag)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>apply</h4>
<pre>public static <VD,ED> <a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="class in org.apache.spark.graphx.impl">GraphImpl</a><VD,ED> apply(<a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><<a href="../../../../../org/apache/spark/graphx/Edge.html" title="class in org.apache.spark.graphx">Edge</a><ED>> edges,
VD defaultVertexAttr,
<a href="../../../../../org/apache/spark/storage/StorageLevel.html" title="class in org.apache.spark.storage">StorageLevel</a> edgeStorageLevel,
<a href="../../../../../org/apache/spark/storage/StorageLevel.html" title="class in org.apache.spark.storage">StorageLevel</a> vertexStorageLevel,
scala.reflect.ClassTag<VD> evidence$14,
scala.reflect.ClassTag<ED> evidence$15)</pre>
<div class="block">Create a graph from edges, setting referenced vertices to `defaultVertexAttr`.</div>
</li>
</ul>
<a name="fromEdgePartitions(org.apache.spark.rdd.RDD,java.lang.Object,org.apache.spark.storage.StorageLevel,org.apache.spark.storage.StorageLevel,scala.reflect.ClassTag,scala.reflect.ClassTag)">
<!-- -->
</a><a name="fromEdgePartitions(org.apache.spark.rdd.RDD, VD, org.apache.spark.storage.StorageLevel, org.apache.spark.storage.StorageLevel, scala.reflect.ClassTag, scala.reflect.ClassTag)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fromEdgePartitions</h4>
<pre>public static <VD,ED> <a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="class in org.apache.spark.graphx.impl">GraphImpl</a><VD,ED> fromEdgePartitions(<a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><scala.Tuple2<java.lang.Object,org.apache.spark.graphx.impl.EdgePartition<ED,VD>>> edgePartitions,
VD defaultVertexAttr,
<a href="../../../../../org/apache/spark/storage/StorageLevel.html" title="class in org.apache.spark.storage">StorageLevel</a> edgeStorageLevel,
<a href="../../../../../org/apache/spark/storage/StorageLevel.html" title="class in org.apache.spark.storage">StorageLevel</a> vertexStorageLevel,
scala.reflect.ClassTag<VD> evidence$16,
scala.reflect.ClassTag<ED> evidence$17)</pre>
<div class="block">Create a graph from EdgePartitions, setting referenced vertices to `defaultVertexAttr`.</div>
</li>
</ul>
<a name="apply(org.apache.spark.rdd.RDD,org.apache.spark.rdd.RDD,java.lang.Object,org.apache.spark.storage.StorageLevel,org.apache.spark.storage.StorageLevel,scala.reflect.ClassTag,scala.reflect.ClassTag)">
<!-- -->
</a><a name="apply(org.apache.spark.rdd.RDD, org.apache.spark.rdd.RDD, VD, org.apache.spark.storage.StorageLevel, org.apache.spark.storage.StorageLevel, scala.reflect.ClassTag, scala.reflect.ClassTag)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>apply</h4>
<pre>public static <VD,ED> <a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="class in org.apache.spark.graphx.impl">GraphImpl</a><VD,ED> apply(<a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><scala.Tuple2<java.lang.Object,VD>> vertices,
<a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><<a href="../../../../../org/apache/spark/graphx/Edge.html" title="class in org.apache.spark.graphx">Edge</a><ED>> edges,
VD defaultVertexAttr,
<a href="../../../../../org/apache/spark/storage/StorageLevel.html" title="class in org.apache.spark.storage">StorageLevel</a> edgeStorageLevel,
<a href="../../../../../org/apache/spark/storage/StorageLevel.html" title="class in org.apache.spark.storage">StorageLevel</a> vertexStorageLevel,
scala.reflect.ClassTag<VD> evidence$18,
scala.reflect.ClassTag<ED> evidence$19)</pre>
<div class="block">Create a graph from vertices and edges, setting missing vertices to `defaultVertexAttr`.</div>
</li>
</ul>
<a name="apply(org.apache.spark.graphx.VertexRDD, org.apache.spark.graphx.EdgeRDD, scala.reflect.ClassTag, scala.reflect.ClassTag)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>apply</h4>
<pre>public static <VD,ED> <a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="class in org.apache.spark.graphx.impl">GraphImpl</a><VD,ED> apply(<a href="../../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a><VD> vertices,
<a href="../../../../../org/apache/spark/graphx/EdgeRDD.html" title="class in org.apache.spark.graphx">EdgeRDD</a><ED> edges,
scala.reflect.ClassTag<VD> evidence$20,
scala.reflect.ClassTag<ED> evidence$21)</pre>
<div class="block">Create a graph from a VertexRDD and an EdgeRDD with arbitrary replicated vertices. The
VertexRDD must already be set up for efficient joins with the EdgeRDD by calling
<code>VertexRDD.withEdges</code> or an appropriate VertexRDD constructor.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>vertices</code> - (undocumented)</dd><dd><code>edges</code> - (undocumented)</dd><dd><code>evidence$20</code> - (undocumented)</dd><dd><code>evidence$21</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="fromExistingRDDs(org.apache.spark.graphx.VertexRDD, org.apache.spark.graphx.EdgeRDD, scala.reflect.ClassTag, scala.reflect.ClassTag)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fromExistingRDDs</h4>
<pre>public static <VD,ED> <a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="class in org.apache.spark.graphx.impl">GraphImpl</a><VD,ED> fromExistingRDDs(<a href="../../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a><VD> vertices,
<a href="../../../../../org/apache/spark/graphx/EdgeRDD.html" title="class in org.apache.spark.graphx">EdgeRDD</a><ED> edges,
scala.reflect.ClassTag<VD> evidence$22,
scala.reflect.ClassTag<ED> evidence$23)</pre>
<div class="block">Create a graph from a VertexRDD and an EdgeRDD with the same replicated vertex type as the
vertices. The VertexRDD must already be set up for efficient joins with the EdgeRDD by calling
<code>VertexRDD.withEdges</code> or an appropriate VertexRDD constructor.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>vertices</code> - (undocumented)</dd><dd><code>edges</code> - (undocumented)</dd><dd><code>evidence$22</code> - (undocumented)</dd><dd><code>evidence$23</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="vertices()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>vertices</h4>
<pre>public <a href="../../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>> vertices()</pre>
<div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/spark/graphx/Graph.html#vertices()">Graph</a></code></strong></div>
<div class="block">An RDD containing the vertices and their associated attributes.
<p></div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/graphx/Graph.html#vertices()">vertices</a></code> in class <code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>an RDD containing the vertices in this graph</dd></dl>
</li>
</ul>
<a name="replicatedVertexView()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replicatedVertexView</h4>
<pre>public org.apache.spark.graphx.impl.ReplicatedVertexView<<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>> replicatedVertexView()</pre>
</li>
</ul>
<a name="edges()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>edges</h4>
<pre>public <a href="../../../../../org/apache/spark/graphx/impl/EdgeRDDImpl.html" title="class in org.apache.spark.graphx.impl">EdgeRDDImpl</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>> edges()</pre>
<div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/spark/graphx/Graph.html#edges()">Graph</a></code></strong></div>
<div class="block">An RDD containing the edges and their associated attributes. The entries in the RDD contain
just the source id and target id along with the edge data.
<p></div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/graphx/Graph.html#edges()">edges</a></code> in class <code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>an RDD containing the edges in this graph
<p></dd><dt><span class="strong">See Also:</span></dt><dd><code>Edge} for the edge type.</code>,
<code>Graph#triplets} to get an RDD which contains all the edges
along with their vertex data.
<p></code></dd></dl>
</li>
</ul>
<a name="triplets()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>triplets</h4>
<pre>public <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><<a href="../../../../../org/apache/spark/graphx/EdgeTriplet.html" title="class in org.apache.spark.graphx">EdgeTriplet</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>>> triplets()</pre>
<div class="block">Return a RDD that brings edges together with their source and destination vertices.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/graphx/Graph.html#triplets()">triplets</a></code> in class <code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>an RDD containing edge triplets
<p></dd></dl>
</li>
</ul>
<a name="persist(org.apache.spark.storage.StorageLevel)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>persist</h4>
<pre>public <a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>> persist(<a href="../../../../../org/apache/spark/storage/StorageLevel.html" title="class in org.apache.spark.storage">StorageLevel</a> newLevel)</pre>
<div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/spark/graphx/Graph.html#persist(org.apache.spark.storage.StorageLevel)">Graph</a></code></strong></div>
<div class="block">Caches the vertices and edges associated with this graph at the specified storage level,
ignoring any target storage levels previously set.
<p></div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/graphx/Graph.html#persist(org.apache.spark.storage.StorageLevel)">persist</a></code> in class <code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>newLevel</code> - the level at which to cache the graph.
<p></dd>
<dt><span class="strong">Returns:</span></dt><dd>A reference to this graph for convenience.</dd></dl>
</li>
</ul>
<a name="cache()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cache</h4>
<pre>public <a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>> cache()</pre>
<div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/spark/graphx/Graph.html#cache()">Graph</a></code></strong></div>
<div class="block">Caches the vertices and edges associated with this graph at the previously-specified target
storage levels, which default to <code>MEMORY_ONLY</code>. This is used to pin a graph in memory enabling
multiple queries to reuse the same construction process.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/graphx/Graph.html#cache()">cache</a></code> in class <code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="checkpoint()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>checkpoint</h4>
<pre>public void checkpoint()</pre>
<div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/spark/graphx/Graph.html#checkpoint()">Graph</a></code></strong></div>
<div class="block">Mark this Graph for checkpointing. It will be saved to a file inside the checkpoint
directory set with SparkContext.setCheckpointDir() and all references to its parent
RDDs will be removed. It is strongly recommended that this Graph is persisted in
memory, otherwise saving it on a file will require recomputation.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/graphx/Graph.html#checkpoint()">checkpoint</a></code> in class <code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></dd>
</dl>
</li>
</ul>
<a name="isCheckpointed()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isCheckpointed</h4>
<pre>public boolean isCheckpointed()</pre>
<div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/spark/graphx/Graph.html#isCheckpointed()">Graph</a></code></strong></div>
<div class="block">Return whether this Graph has been checkpointed or not.
This returns true iff both the vertices RDD and edges RDD have been checkpointed.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/graphx/Graph.html#isCheckpointed()">isCheckpointed</a></code> in class <code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="getCheckpointFiles()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCheckpointFiles</h4>
<pre>public scala.collection.Seq<java.lang.String> getCheckpointFiles()</pre>
<div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/spark/graphx/Graph.html#getCheckpointFiles()">Graph</a></code></strong></div>
<div class="block">Gets the name of the files to which this Graph was checkpointed.
(The vertices RDD and edges RDD are checkpointed separately.)</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/graphx/Graph.html#getCheckpointFiles()">getCheckpointFiles</a></code> in class <code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="unpersist(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>unpersist</h4>
<pre>public <a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>> unpersist(boolean blocking)</pre>
<div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/spark/graphx/Graph.html#unpersist(boolean)">Graph</a></code></strong></div>
<div class="block">Uncaches both vertices and edges of this graph. This is useful in iterative algorithms that
build a new graph in each iteration.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/graphx/Graph.html#unpersist(boolean)">unpersist</a></code> in class <code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>blocking</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="unpersistVertices(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>unpersistVertices</h4>
<pre>public <a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>> unpersistVertices(boolean blocking)</pre>
<div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/spark/graphx/Graph.html#unpersistVertices(boolean)">Graph</a></code></strong></div>
<div class="block">Uncaches only the vertices of this graph, leaving the edges alone. This is useful in iterative
algorithms that modify the vertex attributes but reuse the edges. This method can be used to
uncache the vertex attributes of previous iterations once they are no longer needed, improving
GC performance.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/graphx/Graph.html#unpersistVertices(boolean)">unpersistVertices</a></code> in class <code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>blocking</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="partitionBy(org.apache.spark.graphx.PartitionStrategy)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>partitionBy</h4>
<pre>public <a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>> partitionBy(<a href="../../../../../org/apache/spark/graphx/PartitionStrategy.html" title="interface in org.apache.spark.graphx">PartitionStrategy</a> partitionStrategy)</pre>
<div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/spark/graphx/Graph.html#partitionBy(org.apache.spark.graphx.PartitionStrategy)">Graph</a></code></strong></div>
<div class="block">Repartitions the edges in the graph according to <code>partitionStrategy</code>.
<p></div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/graphx/Graph.html#partitionBy(org.apache.spark.graphx.PartitionStrategy)">partitionBy</a></code> in class <code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>partitionStrategy</code> - the partitioning strategy to use when partitioning the edges
in the graph.</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="partitionBy(org.apache.spark.graphx.PartitionStrategy, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>partitionBy</h4>
<pre>public <a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>> partitionBy(<a href="../../../../../org/apache/spark/graphx/PartitionStrategy.html" title="interface in org.apache.spark.graphx">PartitionStrategy</a> partitionStrategy,
int numPartitions)</pre>
<div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/spark/graphx/Graph.html#partitionBy(org.apache.spark.graphx.PartitionStrategy, int)">Graph</a></code></strong></div>
<div class="block">Repartitions the edges in the graph according to <code>partitionStrategy</code>.
<p></div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/graphx/Graph.html#partitionBy(org.apache.spark.graphx.PartitionStrategy, int)">partitionBy</a></code> in class <code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>partitionStrategy</code> - the partitioning strategy to use when partitioning the edges
in the graph.</dd><dd><code>numPartitions</code> - the number of edge partitions in the new graph.</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="reverse()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reverse</h4>
<pre>public <a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>> reverse()</pre>
<div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/spark/graphx/Graph.html#reverse()">Graph</a></code></strong></div>
<div class="block">Reverses all edges in the graph. If this graph contains an edge from a to b then the returned
graph contains an edge from b to a.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/graphx/Graph.html#reverse()">reverse</a></code> in class <code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="mapVertices(scala.Function2, scala.reflect.ClassTag, scala.Predef.$eq$colon$eq)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mapVertices</h4>
<pre>public <VD2> <a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><VD2,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>> mapVertices(scala.Function2<java.lang.Object,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,VD2> f,
scala.reflect.ClassTag<VD2> evidence$5,
scala.Predef.$eq$colon$eq<<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,VD2> eq)</pre>
<div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/spark/graphx/Graph.html#mapVertices(scala.Function2, scala.reflect.ClassTag, scala.Predef.$eq$colon$eq)">Graph</a></code></strong></div>
<div class="block">Transforms each vertex attribute in the graph using the map function.
<p></div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/graphx/Graph.html#mapVertices(scala.Function2, scala.reflect.ClassTag, scala.Predef.$eq$colon$eq)">mapVertices</a></code> in class <code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>f</code> - the function from a vertex object to a new vertex value
<p></dd><dd><code>evidence$5</code> - (undocumented)</dd><dd><code>eq</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="mapEdges(scala.Function2, scala.reflect.ClassTag)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mapEdges</h4>
<pre>public <ED2> <a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,ED2> mapEdges(scala.Function2<java.lang.Object,scala.collection.Iterator<<a href="../../../../../org/apache/spark/graphx/Edge.html" title="class in org.apache.spark.graphx">Edge</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>>>,scala.collection.Iterator<ED2>> f,
scala.reflect.ClassTag<ED2> evidence$6)</pre>
<div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/spark/graphx/Graph.html#mapEdges(scala.Function2, scala.reflect.ClassTag)">Graph</a></code></strong></div>
<div class="block">Transforms each edge attribute using the map function, passing it a whole partition at a
time. The map function is given an iterator over edges within a logical partition as well as
the partition's ID, and it should return a new iterator over the new values of each edge. The
new iterator's elements must correspond one-to-one with the old iterator's elements. If
adjacent vertex values are desired, use <code>mapTriplets</code>.
<p></div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/graphx/Graph.html#mapEdges(scala.Function2, scala.reflect.ClassTag)">mapEdges</a></code> in class <code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>f</code> - a function that takes a partition id and an iterator
over all the edges in the partition, and must return an iterator over
the new values for each edge in the order of the input iterator
<p></dd><dd><code>evidence$6</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="mapTriplets(scala.Function2, org.apache.spark.graphx.TripletFields, scala.reflect.ClassTag)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mapTriplets</h4>
<pre>public <ED2> <a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,ED2> mapTriplets(scala.Function2<java.lang.Object,scala.collection.Iterator<<a href="../../../../../org/apache/spark/graphx/EdgeTriplet.html" title="class in org.apache.spark.graphx">EdgeTriplet</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>>>,scala.collection.Iterator<ED2>> f,
<a href="../../../../../org/apache/spark/graphx/TripletFields.html" title="class in org.apache.spark.graphx">TripletFields</a> tripletFields,
scala.reflect.ClassTag<ED2> evidence$7)</pre>
<div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/spark/graphx/Graph.html#mapTriplets(scala.Function2, org.apache.spark.graphx.TripletFields, scala.reflect.ClassTag)">Graph</a></code></strong></div>
<div class="block">Transforms each edge attribute a partition at a time using the map function, passing it the
adjacent vertex attributes as well. The map function is given an iterator over edge triplets
within a logical partition and should yield a new iterator over the new values of each edge in
the order in which they are provided. If adjacent vertex values are not required, consider
using <code>mapEdges</code> instead.
<p></div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/graphx/Graph.html#mapTriplets(scala.Function2, org.apache.spark.graphx.TripletFields, scala.reflect.ClassTag)">mapTriplets</a></code> in class <code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>f</code> - the iterator transform</dd><dd><code>tripletFields</code> - which fields should be included in the edge triplet passed to the map
function. If not all fields are needed, specifying this can improve performance.
<p></dd><dd><code>evidence$7</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="subgraph(scala.Function1, scala.Function2)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>subgraph</h4>
<pre>public <a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>> subgraph(scala.Function1<<a href="../../../../../org/apache/spark/graphx/EdgeTriplet.html" title="class in org.apache.spark.graphx">EdgeTriplet</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>>,java.lang.Object> epred,
scala.Function2<java.lang.Object,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,java.lang.Object> vpred)</pre>
<div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/spark/graphx/Graph.html#subgraph(scala.Function1, scala.Function2)">Graph</a></code></strong></div>
<div class="block">Restricts the graph to only the vertices and edges satisfying the predicates. The resulting
subgraph satisifies
<p>
<pre><code>
V' = {v : for all v in V where vpred(v)}
E' = {(u,v): for all (u,v) in E where epred((u,v)) && vpred(u) && vpred(v)}
</code></pre>
<p></div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/graphx/Graph.html#subgraph(scala.Function1, scala.Function2)">subgraph</a></code> in class <code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>epred</code> - the edge predicate, which takes a triplet and
evaluates to true if the edge is to remain in the subgraph. Note
that only edges where both vertices satisfy the vertex
predicate are considered.
<p></dd><dd><code>vpred</code> - the vertex predicate, which takes a vertex object and
evaluates to true if the vertex is to be included in the subgraph
<p></dd>
<dt><span class="strong">Returns:</span></dt><dd>the subgraph containing only the vertices and edges that
satisfy the predicates</dd></dl>
</li>
</ul>
<a name="mask(org.apache.spark.graphx.Graph, scala.reflect.ClassTag, scala.reflect.ClassTag)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mask</h4>
<pre>public <VD2,ED2> <a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>> mask(<a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><VD2,ED2> other,
scala.reflect.ClassTag<VD2> evidence$8,
scala.reflect.ClassTag<ED2> evidence$9)</pre>
<div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/spark/graphx/Graph.html#mask(org.apache.spark.graphx.Graph, scala.reflect.ClassTag, scala.reflect.ClassTag)">Graph</a></code></strong></div>
<div class="block">Restricts the graph to only the vertices and edges that are also in <code>other</code>, but keeps the
attributes from this graph.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/graphx/Graph.html#mask(org.apache.spark.graphx.Graph, scala.reflect.ClassTag, scala.reflect.ClassTag)">mask</a></code> in class <code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - the graph to project this graph onto</dd><dd><code>evidence$8</code> - (undocumented)</dd><dd><code>evidence$9</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>a graph with vertices and edges that exist in both the current graph and <code>other</code>,
with vertex and edge data from the current graph</dd></dl>
</li>
</ul>
<a name="groupEdges(scala.Function2)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>groupEdges</h4>
<pre>public <a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>> groupEdges(scala.Function2<<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>> merge)</pre>
<div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/spark/graphx/Graph.html#groupEdges(scala.Function2)">Graph</a></code></strong></div>
<div class="block">Merges multiple edges between two vertices into a single edge. For correct results, the graph
must have been partitioned using <code>partitionBy</code>.
<p></div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/graphx/Graph.html#groupEdges(scala.Function2)">groupEdges</a></code> in class <code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>merge</code> - the user-supplied commutative associative function to merge edge attributes
for duplicate edges.
<p></dd>
<dt><span class="strong">Returns:</span></dt><dd>The resulting graph with a single edge for each (source, dest) vertex pair.</dd></dl>
</li>
</ul>
<a name="mapReduceTriplets(scala.Function1, scala.Function2, scala.Option, scala.reflect.ClassTag)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mapReduceTriplets</h4>
<pre>public <A> <a href="../../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a><A> mapReduceTriplets(scala.Function1<<a href="../../../../../org/apache/spark/graphx/EdgeTriplet.html" title="class in org.apache.spark.graphx">EdgeTriplet</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>>,scala.collection.Iterator<scala.Tuple2<java.lang.Object,A>>> mapFunc,
scala.Function2<A,A,A> reduceFunc,
scala.Option<scala.Tuple2<<a href="../../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a><?>,<a href="../../../../../org/apache/spark/graphx/EdgeDirection.html" title="class in org.apache.spark.graphx">EdgeDirection</a>>> activeSetOpt,
scala.reflect.ClassTag<A> evidence$10)</pre>
<div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/spark/graphx/Graph.html#mapReduceTriplets(scala.Function1, scala.Function2, scala.Option, scala.reflect.ClassTag)">Graph</a></code></strong></div>
<div class="block">Aggregates values from the neighboring edges and vertices of each vertex. The user supplied
<code>mapFunc</code> function is invoked on each edge of the graph, generating 0 or more "messages" to be
"sent" to either vertex in the edge. The <code>reduceFunc</code> is then used to combine the output of
the map phase destined to each vertex.
<p>
This function is deprecated in 1.2.0 because of SPARK-3936. Use aggregateMessages instead.
<p></div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/graphx/Graph.html#mapReduceTriplets(scala.Function1, scala.Function2, scala.Option, scala.reflect.ClassTag)">mapReduceTriplets</a></code> in class <code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>mapFunc</code> - the user defined map function which returns 0 or
more messages to neighboring vertices
<p></dd><dd><code>reduceFunc</code> - the user defined reduce function which should
be commutative and associative and is used to combine the output
of the map phase
<p></dd><dd><code>activeSetOpt</code> - an efficient way to run the aggregation on a subset of the edges if
desired. This is done by specifying a set of "active" vertices and an edge direction. The
<code>sendMsg</code> function will then run only on edges connected to active vertices by edges in the
specified direction. If the direction is <code>In</code>, <code>sendMsg</code> will only be run on edges with
destination in the active set. If the direction is <code>Out</code>, <code>sendMsg</code> will only be run on edges
originating from vertices in the active set. If the direction is <code>Either</code>, <code>sendMsg</code> will be
run on edges with *either* vertex in the active set. If the direction is <code>Both</code>, <code>sendMsg</code>
will be run on edges with *both* vertices in the active set. The active set must have the
same index as the graph's vertices.
<p></dd><dd><code>evidence$10</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="aggregateMessagesWithActiveSet(scala.Function1, scala.Function2, org.apache.spark.graphx.TripletFields, scala.Option, scala.reflect.ClassTag)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>aggregateMessagesWithActiveSet</h4>
<pre>public <A> <a href="../../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a><A> aggregateMessagesWithActiveSet(scala.Function1<<a href="../../../../../org/apache/spark/graphx/EdgeContext.html" title="class in org.apache.spark.graphx">EdgeContext</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>,A>,scala.runtime.BoxedUnit> sendMsg,
scala.Function2<A,A,A> mergeMsg,
<a href="../../../../../org/apache/spark/graphx/TripletFields.html" title="class in org.apache.spark.graphx">TripletFields</a> tripletFields,
scala.Option<scala.Tuple2<<a href="../../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a><?>,<a href="../../../../../org/apache/spark/graphx/EdgeDirection.html" title="class in org.apache.spark.graphx">EdgeDirection</a>>> activeSetOpt,
scala.reflect.ClassTag<A> evidence$11)</pre>
</li>
</ul>
<a name="outerJoinVertices(org.apache.spark.rdd.RDD, scala.Function3, scala.reflect.ClassTag, scala.reflect.ClassTag, scala.Predef.$eq$colon$eq)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>outerJoinVertices</h4>
<pre>public <U,VD2> <a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><VD2,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>> outerJoinVertices(<a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><scala.Tuple2<java.lang.Object,U>> other,
scala.Function3<java.lang.Object,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,scala.Option<U>,VD2> updateF,
scala.reflect.ClassTag<U> evidence$12,
scala.reflect.ClassTag<VD2> evidence$13,
scala.Predef.$eq$colon$eq<<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,VD2> eq)</pre>
<div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/spark/graphx/Graph.html#outerJoinVertices(org.apache.spark.rdd.RDD, scala.Function3, scala.reflect.ClassTag, scala.reflect.ClassTag, scala.Predef.$eq$colon$eq)">Graph</a></code></strong></div>
<div class="block">Joins the vertices with entries in the <code>table</code> RDD and merges the results using <code>mapFunc</code>.
The input table should contain at most one entry for each vertex. If no entry in <code>other</code> is
provided for a particular vertex in the graph, the map function receives <code>None</code>.
<p></div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/graphx/Graph.html#outerJoinVertices(org.apache.spark.rdd.RDD, scala.Function3, scala.reflect.ClassTag, scala.reflect.ClassTag, scala.Predef.$eq$colon$eq)">outerJoinVertices</a></code> in class <code><a href="../../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a><<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">VD</a>,<a href="../../../../../org/apache/spark/graphx/impl/GraphImpl.html" title="type parameter in GraphImpl">ED</a>></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - the table to join with the vertices in the graph.
The table should contain at most one entry for each vertex.</dd><dd><code>updateF</code> - the function used to compute the new vertex values.
The map function is invoked for all vertices, even those
that do not have a corresponding entry in the table.
<p></dd><dd><code>evidence$12</code> - (undocumented)</dd><dd><code>evidence$13</code> - (undocumented)</dd><dd><code>eq</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/spark/graphx/impl/EdgeRDDImpl.html" title="class in org.apache.spark.graphx.impl"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/spark/graphx/impl/VertexRDDImpl.html" title="class in org.apache.spark.graphx.impl"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/spark/graphx/impl/GraphImpl.html" target="_top">Frames</a></li>
<li><a href="GraphImpl.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<script defer="defer" type="text/javascript" src="../../../../../lib/jquery.js"></script><script defer="defer" type="text/javascript" src="../../../../../lib/api-javadocs.js"></script></body>
</html>