summaryrefslogtreecommitdiff
path: root/site/docs/1.5.0/api/java/org/apache/spark/graphx/GraphOps.html
blob: e5e39aeefaaf802a9d139f788245e08f1ef70474 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
<!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:08 PDT 2015 -->
<title>GraphOps</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="GraphOps";
    }
//-->
</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/GraphLoader.html" title="class in org.apache.spark.graphx"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/apache/spark/graphx/GraphXUtils.html" title="class in org.apache.spark.graphx"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/spark/graphx/GraphOps.html" target="_top">Frames</a></li>
<li><a href="GraphOps.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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</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</div>
<h2 title="Class GraphOps" class="title">Class GraphOps&lt;VD,ED&gt;</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.apache.spark.graphx.GraphOps&lt;VD,ED&gt;</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">GraphOps&lt;VD,ED&gt;</span>
extends java.lang.Object
implements scala.Serializable</pre>
<div class="block">Contains additional functionality for <a href="../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx"><code>Graph</code></a>. All operations are expressed in terms of the
 efficient GraphX API. This class is implicitly constructed for each Graph object.
 <p></div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../serialized-form.html#org.apache.spark.graphx.GraphOps">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">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../org/apache/spark/graphx/GraphOps.html#GraphOps(org.apache.spark.graphx.Graph, scala.reflect.ClassTag, scala.reflect.ClassTag)">GraphOps</a></strong>(<a href="../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a>&lt;<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;&nbsp;graph,
        scala.reflect.ClassTag&lt;<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>&gt;&nbsp;evidence$1,
        scala.reflect.ClassTag&lt;<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;&nbsp;evidence$2)</code>&nbsp;</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">&nbsp;</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 href="../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a>&lt;<a href="../../../../org/apache/spark/graphx/Edge.html" title="class in org.apache.spark.graphx">Edge</a>&lt;<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;[]&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/graphx/GraphOps.html#collectEdges(org.apache.spark.graphx.EdgeDirection)">collectEdges</a></strong>(<a href="../../../../org/apache/spark/graphx/EdgeDirection.html" title="class in org.apache.spark.graphx">EdgeDirection</a>&nbsp;edgeDirection)</code>
<div class="block">Returns an RDD that contains for each vertex v its local edges,
 i.e., the edges that are incident on v, in the user-specified direction.</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>&lt;long[]&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/graphx/GraphOps.html#collectNeighborIds(org.apache.spark.graphx.EdgeDirection)">collectNeighborIds</a></strong>(<a href="../../../../org/apache/spark/graphx/EdgeDirection.html" title="class in org.apache.spark.graphx">EdgeDirection</a>&nbsp;edgeDirection)</code>
<div class="block">Collect the neighbor vertex ids for each vertex.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a>&lt;scala.Tuple2&lt;java.lang.Object,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>&gt;[]&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/graphx/GraphOps.html#collectNeighbors(org.apache.spark.graphx.EdgeDirection)">collectNeighbors</a></strong>(<a href="../../../../org/apache/spark/graphx/EdgeDirection.html" title="class in org.apache.spark.graphx">EdgeDirection</a>&nbsp;edgeDirection)</code>
<div class="block">Collect the neighbor vertex attributes for each vertex.</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>&lt;java.lang.Object,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/graphx/GraphOps.html#connectedComponents()">connectedComponents</a></strong>()</code>
<div class="block">Compute the connected component membership of each vertex and return a graph with the vertex
 value containing the lowest vertex id in the connected component containing that vertex.</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>&lt;<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/graphx/GraphOps.html#convertToCanonicalEdges(scala.Function2)">convertToCanonicalEdges</a></strong>(scala.Function2&lt;<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;&nbsp;mergeFunc)</code>
<div class="block">Convert bi-directional edges into uni-directional ones.</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>&lt;java.lang.Object&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/graphx/GraphOps.html#degrees()">degrees</a></strong>()</code>
<div class="block">The degree of each vertex in the graph.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>&lt;VD2,ED2&gt;&nbsp;<a href="../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a>&lt;<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/graphx/GraphOps.html#filter(scala.Function1, scala.Function1, scala.Function2, scala.reflect.ClassTag, scala.reflect.ClassTag)">filter</a></strong>(scala.Function1&lt;<a href="../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a>&lt;<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;,<a href="../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a>&lt;VD2,ED2&gt;&gt;&nbsp;preprocess,
      scala.Function1&lt;<a href="../../../../org/apache/spark/graphx/EdgeTriplet.html" title="class in org.apache.spark.graphx">EdgeTriplet</a>&lt;VD2,ED2&gt;,java.lang.Object&gt;&nbsp;epred,
      scala.Function2&lt;java.lang.Object,VD2,java.lang.Object&gt;&nbsp;vpred,
      scala.reflect.ClassTag&lt;VD2&gt;&nbsp;evidence$4,
      scala.reflect.ClassTag&lt;ED2&gt;&nbsp;evidence$5)</code>
<div class="block">Filter the graph by computing some values to filter on, and applying the predicates.</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>&lt;java.lang.Object&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/graphx/GraphOps.html#inDegrees()">inDegrees</a></strong>()</code>
<div class="block">The in-degree of each vertex in the graph.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>&lt;U&gt;&nbsp;<a href="../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a>&lt;<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/graphx/GraphOps.html#joinVertices(org.apache.spark.rdd.RDD, scala.Function3, scala.reflect.ClassTag)">joinVertices</a></strong>(<a href="../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a>&lt;scala.Tuple2&lt;java.lang.Object,U&gt;&gt;&nbsp;table,
            scala.Function3&lt;java.lang.Object,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>,U,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>&gt;&nbsp;mapFunc,
            scala.reflect.ClassTag&lt;U&gt;&nbsp;evidence$3)</code>
<div class="block">Join the vertices with an RDD and then apply a function from the
 vertex and RDD entry to a new vertex value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/graphx/GraphOps.html#numEdges()">numEdges</a></strong>()</code>
<div class="block">The number of edges in the graph.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/graphx/GraphOps.html#numVertices()">numVertices</a></strong>()</code>
<div class="block">The number of vertices in the graph.</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>&lt;java.lang.Object&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/graphx/GraphOps.html#outDegrees()">outDegrees</a></strong>()</code>
<div class="block">The out-degree of each vertex in the 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>&lt;java.lang.Object,java.lang.Object&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/graphx/GraphOps.html#pageRank(double, double)">pageRank</a></strong>(double&nbsp;tol,
        double&nbsp;resetProb)</code>
<div class="block">Run a dynamic version of PageRank returning a graph with vertex attributes containing the
 PageRank and edge attributes containing the normalized edge weight.</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>&lt;java.lang.Object,java.lang.Object&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/graphx/GraphOps.html#personalizedPageRank(long, double, double)">personalizedPageRank</a></strong>(long&nbsp;src,
                    double&nbsp;tol,
                    double&nbsp;resetProb)</code>
<div class="block">Run personalized PageRank for a given vertex, such that all random walks
 are started relative to the source node.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/graphx/GraphOps.html#pickRandomVertex()">pickRandomVertex</a></strong>()</code>
<div class="block">Picks a random vertex from the graph and returns its ID.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>&lt;A&gt;&nbsp;<a href="../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a>&lt;<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/graphx/GraphOps.html#pregel(A, int, org.apache.spark.graphx.EdgeDirection, scala.Function3, scala.Function1, scala.Function2, scala.reflect.ClassTag)">pregel</a></strong>(A&nbsp;initialMsg,
      int&nbsp;maxIterations,
      <a href="../../../../org/apache/spark/graphx/EdgeDirection.html" title="class in org.apache.spark.graphx">EdgeDirection</a>&nbsp;activeDirection,
      scala.Function3&lt;java.lang.Object,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>,A,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>&gt;&nbsp;vprog,
      scala.Function1&lt;<a href="../../../../org/apache/spark/graphx/EdgeTriplet.html" title="class in org.apache.spark.graphx">EdgeTriplet</a>&lt;<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;,scala.collection.Iterator&lt;scala.Tuple2&lt;java.lang.Object,A&gt;&gt;&gt;&nbsp;sendMsg,
      scala.Function2&lt;A,A,A&gt;&nbsp;mergeMsg,
      scala.reflect.ClassTag&lt;A&gt;&nbsp;evidence$6)</code>
<div class="block">Execute a Pregel-like iterative vertex-parallel abstraction.</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>&lt;java.lang.Object,java.lang.Object&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/graphx/GraphOps.html#staticPageRank(int, double)">staticPageRank</a></strong>(int&nbsp;numIter,
              double&nbsp;resetProb)</code>
<div class="block">Run PageRank for a fixed number of iterations returning a graph with vertex attributes
 containing the PageRank and edge attributes the normalized edge weight.</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>&lt;java.lang.Object,java.lang.Object&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/graphx/GraphOps.html#staticPersonalizedPageRank(long, int, double)">staticPersonalizedPageRank</a></strong>(long&nbsp;src,
                          int&nbsp;numIter,
                          double&nbsp;resetProb)</code>
<div class="block">Run Personalized PageRank for a fixed number of iterations with
 with all iterations originating at the source node
 returning a graph with vertex attributes
 containing the PageRank and edge attributes the normalized edge weight.</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>&lt;java.lang.Object,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/graphx/GraphOps.html#stronglyConnectedComponents(int)">stronglyConnectedComponents</a></strong>(int&nbsp;numIter)</code>
<div class="block">Compute the strongly connected component (SCC) of each vertex and return a graph with the
 vertex value containing the lowest vertex id in the SCC containing that vertex.</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>&lt;java.lang.Object,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/graphx/GraphOps.html#triangleCount()">triangleCount</a></strong>()</code>
<div class="block">Compute the number of triangles passing through each vertex.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;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="GraphOps(org.apache.spark.graphx.Graph, scala.reflect.ClassTag, scala.reflect.ClassTag)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>GraphOps</h4>
<pre>public&nbsp;GraphOps(<a href="../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a>&lt;<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;&nbsp;graph,
        scala.reflect.ClassTag&lt;<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>&gt;&nbsp;evidence$1,
        scala.reflect.ClassTag&lt;<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;&nbsp;evidence$2)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="numEdges()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>numEdges</h4>
<pre>public&nbsp;long&nbsp;numEdges()</pre>
<div class="block">The number of edges in the graph.</div>
</li>
</ul>
<a name="numVertices()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>numVertices</h4>
<pre>public&nbsp;long&nbsp;numVertices()</pre>
<div class="block">The number of vertices in the graph.</div>
</li>
</ul>
<a name="inDegrees()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>inDegrees</h4>
<pre>public&nbsp;<a href="../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a>&lt;java.lang.Object&gt;&nbsp;inDegrees()</pre>
<div class="block">The in-degree of each vertex in the graph.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="outDegrees()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>outDegrees</h4>
<pre>public&nbsp;<a href="../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a>&lt;java.lang.Object&gt;&nbsp;outDegrees()</pre>
<div class="block">The out-degree of each vertex in the graph.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="degrees()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>degrees</h4>
<pre>public&nbsp;<a href="../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a>&lt;java.lang.Object&gt;&nbsp;degrees()</pre>
<div class="block">The degree of each vertex in the graph.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="collectNeighborIds(org.apache.spark.graphx.EdgeDirection)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>collectNeighborIds</h4>
<pre>public&nbsp;<a href="../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a>&lt;long[]&gt;&nbsp;collectNeighborIds(<a href="../../../../org/apache/spark/graphx/EdgeDirection.html" title="class in org.apache.spark.graphx">EdgeDirection</a>&nbsp;edgeDirection)</pre>
<div class="block">Collect the neighbor vertex ids for each vertex.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>edgeDirection</code> - the direction along which to collect
 neighboring vertices
 <p></dd>
<dt><span class="strong">Returns:</span></dt><dd>the set of neighboring ids for each vertex</dd></dl>
</li>
</ul>
<a name="collectNeighbors(org.apache.spark.graphx.EdgeDirection)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>collectNeighbors</h4>
<pre>public&nbsp;<a href="../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a>&lt;scala.Tuple2&lt;java.lang.Object,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>&gt;[]&gt;&nbsp;collectNeighbors(<a href="../../../../org/apache/spark/graphx/EdgeDirection.html" title="class in org.apache.spark.graphx">EdgeDirection</a>&nbsp;edgeDirection)</pre>
<div class="block">Collect the neighbor vertex attributes for each vertex.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>edgeDirection</code> - the direction along which to collect
 neighboring vertices
 <p></dd>
<dt><span class="strong">Returns:</span></dt><dd>the vertex set of neighboring vertex attributes for each vertex</dd></dl>
</li>
</ul>
<a name="collectEdges(org.apache.spark.graphx.EdgeDirection)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>collectEdges</h4>
<pre>public&nbsp;<a href="../../../../org/apache/spark/graphx/VertexRDD.html" title="class in org.apache.spark.graphx">VertexRDD</a>&lt;<a href="../../../../org/apache/spark/graphx/Edge.html" title="class in org.apache.spark.graphx">Edge</a>&lt;<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;[]&gt;&nbsp;collectEdges(<a href="../../../../org/apache/spark/graphx/EdgeDirection.html" title="class in org.apache.spark.graphx">EdgeDirection</a>&nbsp;edgeDirection)</pre>
<div class="block">Returns an RDD that contains for each vertex v its local edges,
 i.e., the edges that are incident on v, in the user-specified direction.
 Warning: note that singleton vertices, those with no edges in the given
 direction will not be part of the return value.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>edgeDirection</code> - the direction along which to collect
 the local edges of vertices
 <p></dd>
<dt><span class="strong">Returns:</span></dt><dd>the local edges for each vertex</dd></dl>
</li>
</ul>
<a name="joinVertices(org.apache.spark.rdd.RDD, scala.Function3, scala.reflect.ClassTag)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>joinVertices</h4>
<pre>public&nbsp;&lt;U&gt;&nbsp;<a href="../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a>&lt;<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;&nbsp;joinVertices(<a href="../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a>&lt;scala.Tuple2&lt;java.lang.Object,U&gt;&gt;&nbsp;table,
                            scala.Function3&lt;java.lang.Object,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>,U,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>&gt;&nbsp;mapFunc,
                            scala.reflect.ClassTag&lt;U&gt;&nbsp;evidence$3)</pre>
<div class="block">Join the vertices with an RDD and then apply a function from the
 vertex and RDD entry to a new vertex value.  The input table
 should contain at most one entry for each vertex.  If no entry is
 provided the map function is skipped and the old value is used.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>table</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>mapFunc</code> - the function used to compute the new vertex
 values.  The map function is invoked only for vertices with a
 corresponding entry in the table otherwise the old vertex value
 is used.
 <p></dd><dd><code>evidence$3</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="filter(scala.Function1, scala.Function1, scala.Function2, scala.reflect.ClassTag, scala.reflect.ClassTag)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>filter</h4>
<pre>public&nbsp;&lt;VD2,ED2&gt;&nbsp;<a href="../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a>&lt;<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;&nbsp;filter(scala.Function1&lt;<a href="../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a>&lt;<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;,<a href="../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a>&lt;VD2,ED2&gt;&gt;&nbsp;preprocess,
                            scala.Function1&lt;<a href="../../../../org/apache/spark/graphx/EdgeTriplet.html" title="class in org.apache.spark.graphx">EdgeTriplet</a>&lt;VD2,ED2&gt;,java.lang.Object&gt;&nbsp;epred,
                            scala.Function2&lt;java.lang.Object,VD2,java.lang.Object&gt;&nbsp;vpred,
                            scala.reflect.ClassTag&lt;VD2&gt;&nbsp;evidence$4,
                            scala.reflect.ClassTag&lt;ED2&gt;&nbsp;evidence$5)</pre>
<div class="block">Filter the graph by computing some values to filter on, and applying the predicates.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>preprocess</code> - a function to compute new vertex and edge data before filtering</dd><dd><code>epred</code> - edge pred to filter on after preprocess, see more details under
  <a href="../../../../org/apache/spark/graphx/Graph.html#subgraph(scala.Function1, scala.Function2)"><code>Graph.subgraph(scala.Function1&lt;org.apache.spark.graphx.EdgeTriplet&lt;VD, ED&gt;, java.lang.Object&gt;, scala.Function2&lt;java.lang.Object, VD, java.lang.Object&gt;)</code></a></dd><dd><code>vpred</code> - vertex pred to filter on after prerocess, see more details under
  <a href="../../../../org/apache/spark/graphx/Graph.html#subgraph(scala.Function1, scala.Function2)"><code>Graph.subgraph(scala.Function1&lt;org.apache.spark.graphx.EdgeTriplet&lt;VD, ED&gt;, java.lang.Object&gt;, scala.Function2&lt;java.lang.Object, VD, java.lang.Object&gt;)</code></a></dd><dd><code>evidence$4</code> - (undocumented)</dd><dd><code>evidence$5</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>a subgraph of the orginal graph, with its data unchanged
 <p></dd></dl>
</li>
</ul>
<a name="pickRandomVertex()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pickRandomVertex</h4>
<pre>public&nbsp;long&nbsp;pickRandomVertex()</pre>
<div class="block">Picks a random vertex from the graph and returns its ID.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="convertToCanonicalEdges(scala.Function2)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>convertToCanonicalEdges</h4>
<pre>public&nbsp;<a href="../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a>&lt;<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;&nbsp;convertToCanonicalEdges(scala.Function2&lt;<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;&nbsp;mergeFunc)</pre>
<div class="block">Convert bi-directional edges into uni-directional ones.
 Some graph algorithms (e.g., TriangleCount) assume that an input graph
 has its edges in canonical direction.
 This function rewrites the vertex ids of edges so that srcIds are bigger
 than dstIds, and merges the duplicated edges.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>mergeFunc</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>
<dt><span class="strong">Returns:</span></dt><dd>the resulting graph with canonical edges</dd></dl>
</li>
</ul>
<a name="pregel(java.lang.Object,int,org.apache.spark.graphx.EdgeDirection,scala.Function3,scala.Function1,scala.Function2,scala.reflect.ClassTag)">
<!--   -->
</a><a name="pregel(A, int, org.apache.spark.graphx.EdgeDirection, scala.Function3, scala.Function1, scala.Function2, scala.reflect.ClassTag)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pregel</h4>
<pre>public&nbsp;&lt;A&gt;&nbsp;<a href="../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a>&lt;<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;&nbsp;pregel(A&nbsp;initialMsg,
                      int&nbsp;maxIterations,
                      <a href="../../../../org/apache/spark/graphx/EdgeDirection.html" title="class in org.apache.spark.graphx">EdgeDirection</a>&nbsp;activeDirection,
                      scala.Function3&lt;java.lang.Object,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>,A,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>&gt;&nbsp;vprog,
                      scala.Function1&lt;<a href="../../../../org/apache/spark/graphx/EdgeTriplet.html" title="class in org.apache.spark.graphx">EdgeTriplet</a>&lt;<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">VD</a>,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;,scala.collection.Iterator&lt;scala.Tuple2&lt;java.lang.Object,A&gt;&gt;&gt;&nbsp;sendMsg,
                      scala.Function2&lt;A,A,A&gt;&nbsp;mergeMsg,
                      scala.reflect.ClassTag&lt;A&gt;&nbsp;evidence$6)</pre>
<div class="block">Execute a Pregel-like iterative vertex-parallel abstraction.  The
 user-defined vertex-program <code>vprog</code> is executed in parallel on
 each vertex receiving any inbound messages and computing a new
 value for the vertex.  The <code>sendMsg</code> function is then invoked on
 all out-edges and is used to compute an optional message to the
 destination vertex. The <code>mergeMsg</code> function is a commutative
 associative function used to combine messages destined to the
 same vertex.
 <p>
 On the first iteration all vertices receive the <code>initialMsg</code> and
 on subsequent iterations if a vertex does not receive a message
 then the vertex-program is not invoked.
 <p>
 This function iterates until there are no remaining messages, or
 for <code>maxIterations</code> iterations.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>initialMsg</code> - the message each vertex will receive at the on
 the first iteration
 <p></dd><dd><code>maxIterations</code> - the maximum number of iterations to run for
 <p></dd><dd><code>activeDirection</code> - the direction of edges incident to a vertex that received a message in
 the previous round on which to run <code>sendMsg</code>. For example, if this is <code>EdgeDirection.Out</code>, only
 out-edges of vertices that received a message in the previous round will run.
 <p></dd><dd><code>vprog</code> - the user-defined vertex program which runs on each
 vertex and receives the inbound message and computes a new vertex
 value.  On the first iteration the vertex program is invoked on
 all vertices and is passed the default message.  On subsequent
 iterations the vertex program is only invoked on those vertices
 that receive messages.
 <p></dd><dd><code>sendMsg</code> - a user supplied function that is applied to out
 edges of vertices that received messages in the current
 iteration
 <p></dd><dd><code>mergeMsg</code> - a user supplied function that takes two incoming
 messages of type A and merges them into a single message of type
 A.  ''This function must be commutative and associative and
 ideally the size of A should not increase.''
 <p></dd><dd><code>evidence$6</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>the resulting graph at the end of the computation
 <p></dd></dl>
</li>
</ul>
<a name="pageRank(double, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pageRank</h4>
<pre>public&nbsp;<a href="../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a>&lt;java.lang.Object,java.lang.Object&gt;&nbsp;pageRank(double&nbsp;tol,
                                                double&nbsp;resetProb)</pre>
<div class="block">Run a dynamic version of PageRank returning a graph with vertex attributes containing the
 PageRank and edge attributes containing the normalized edge weight.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tol</code> - (undocumented)</dd><dd><code>resetProb</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">See Also:</span></dt><dd><code>PageRank$.runUntilConvergence(org.apache.spark.graphx.Graph&lt;VD, ED&gt;, double, double, scala.reflect.ClassTag&lt;VD&gt;, scala.reflect.ClassTag&lt;ED&gt;)</code></dd></dl>
</li>
</ul>
<a name="personalizedPageRank(long, double, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>personalizedPageRank</h4>
<pre>public&nbsp;<a href="../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a>&lt;java.lang.Object,java.lang.Object&gt;&nbsp;personalizedPageRank(long&nbsp;src,
                                                            double&nbsp;tol,
                                                            double&nbsp;resetProb)</pre>
<div class="block">Run personalized PageRank for a given vertex, such that all random walks
 are started relative to the source node.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - (undocumented)</dd><dd><code>tol</code> - (undocumented)</dd><dd><code>resetProb</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">See Also:</span></dt><dd><code>PageRank$.runUntilConvergenceWithOptions(org.apache.spark.graphx.Graph&lt;VD, ED&gt;, double, double, scala.Option&lt;java.lang.Object&gt;, scala.reflect.ClassTag&lt;VD&gt;, scala.reflect.ClassTag&lt;ED&gt;)</code></dd></dl>
</li>
</ul>
<a name="staticPersonalizedPageRank(long, int, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>staticPersonalizedPageRank</h4>
<pre>public&nbsp;<a href="../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a>&lt;java.lang.Object,java.lang.Object&gt;&nbsp;staticPersonalizedPageRank(long&nbsp;src,
                                                                  int&nbsp;numIter,
                                                                  double&nbsp;resetProb)</pre>
<div class="block">Run Personalized PageRank for a fixed number of iterations with
 with all iterations originating at the source node
 returning a graph with vertex attributes
 containing the PageRank and edge attributes the normalized edge weight.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - (undocumented)</dd><dd><code>numIter</code> - (undocumented)</dd><dd><code>resetProb</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">See Also:</span></dt><dd><code>PageRank$.runWithOptions(org.apache.spark.graphx.Graph&lt;VD, ED&gt;, int, double, scala.Option&lt;java.lang.Object&gt;, scala.reflect.ClassTag&lt;VD&gt;, scala.reflect.ClassTag&lt;ED&gt;)</code></dd></dl>
</li>
</ul>
<a name="staticPageRank(int, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>staticPageRank</h4>
<pre>public&nbsp;<a href="../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a>&lt;java.lang.Object,java.lang.Object&gt;&nbsp;staticPageRank(int&nbsp;numIter,
                                                      double&nbsp;resetProb)</pre>
<div class="block">Run PageRank for a fixed number of iterations returning a graph with vertex attributes
 containing the PageRank and edge attributes the normalized edge weight.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>numIter</code> - (undocumented)</dd><dd><code>resetProb</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">See Also:</span></dt><dd><code>PageRank$.run(org.apache.spark.graphx.Graph&lt;VD, ED&gt;, int, double, scala.reflect.ClassTag&lt;VD&gt;, scala.reflect.ClassTag&lt;ED&gt;)</code></dd></dl>
</li>
</ul>
<a name="connectedComponents()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>connectedComponents</h4>
<pre>public&nbsp;<a href="../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a>&lt;java.lang.Object,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;&nbsp;connectedComponents()</pre>
<div class="block">Compute the connected component membership of each vertex and return a graph with the vertex
 value containing the lowest vertex id in the connected component containing that vertex.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">See Also:</span></dt><dd><code>ConnectedComponents$.run(org.apache.spark.graphx.Graph&lt;VD, ED&gt;, scala.reflect.ClassTag&lt;VD&gt;, scala.reflect.ClassTag&lt;ED&gt;)</code></dd></dl>
</li>
</ul>
<a name="triangleCount()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>triangleCount</h4>
<pre>public&nbsp;<a href="../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a>&lt;java.lang.Object,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;&nbsp;triangleCount()</pre>
<div class="block">Compute the number of triangles passing through each vertex.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">See Also:</span></dt><dd><code>TriangleCount$.run(org.apache.spark.graphx.Graph&lt;VD, ED&gt;, scala.reflect.ClassTag&lt;VD&gt;, scala.reflect.ClassTag&lt;ED&gt;)</code></dd></dl>
</li>
</ul>
<a name="stronglyConnectedComponents(int)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>stronglyConnectedComponents</h4>
<pre>public&nbsp;<a href="../../../../org/apache/spark/graphx/Graph.html" title="class in org.apache.spark.graphx">Graph</a>&lt;java.lang.Object,<a href="../../../../org/apache/spark/graphx/GraphOps.html" title="type parameter in GraphOps">ED</a>&gt;&nbsp;stronglyConnectedComponents(int&nbsp;numIter)</pre>
<div class="block">Compute the strongly connected component (SCC) of each vertex and return a graph with the
 vertex value containing the lowest vertex id in the SCC containing that vertex.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>numIter</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">See Also:</span></dt><dd><code>StronglyConnectedComponents$.run(org.apache.spark.graphx.Graph&lt;VD, ED&gt;, int, scala.reflect.ClassTag&lt;VD&gt;, scala.reflect.ClassTag&lt;ED&gt;)</code></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/GraphLoader.html" title="class in org.apache.spark.graphx"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/apache/spark/graphx/GraphXUtils.html" title="class in org.apache.spark.graphx"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/spark/graphx/GraphOps.html" target="_top">Frames</a></li>
<li><a href="GraphOps.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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</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>