Skip to content

Commit 57d08a7

Browse files
committed
GraphLike: override hashCode.
1 parent 570e8e6 commit 57d08a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/main/scala/scalax/collection/AnyGraph.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ trait GraphLike[N, E <: Edge[N], +CC[X, Y <: Edge[X]] <: GraphLike[X, Y, CC] wit
8888
false
8989
}
9090

91+
override def hashCode(): Int = this.nodes.toOuter.## + 31 * this.edges.toOuter.##
92+
9193
type NodeT <: GraphInnerNode
9294
trait GraphInnerNode extends BaseInnerNode with TraverserInnerNode { this: NodeT =>
9395

0 commit comments

Comments
 (0)