Fixed the condition in StronglyConnectedComponents Issue: SPARK-3635
Author: oded <oded@HP-DV6.c4internal.c4-security.com> Closes #2486 from odedz/master and squashes the following commits: dd7890a [oded] Fixed the condition in StronglyConnectedComponents Issue: SPARK-3635
This commit is contained in:
parent
51229ff7f4
commit
dc30e4504a
|
@ -75,7 +75,7 @@ object StronglyConnectedComponents {
|
|||
sccWorkGraph, Long.MaxValue, activeDirection = EdgeDirection.Out)(
|
||||
(vid, myScc, neighborScc) => (math.min(myScc._1, neighborScc), myScc._2),
|
||||
e => {
|
||||
if (e.srcId < e.dstId) {
|
||||
if (e.srcAttr._1 < e.dstAttr._1) {
|
||||
Iterator((e.dstId, e.srcAttr._1))
|
||||
} else {
|
||||
Iterator()
|
||||
|
|
Loading…
Reference in a new issue