We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9af41f2 commit b718f04Copy full SHA for b718f04
Graph/Graph/AdjacencyListGraph.swift
@@ -78,7 +78,7 @@ open class AdjacencyListGraph<T>: AbstractGraph<T> where T: Equatable, T: Hashab
78
// works
79
let edge = Edge(from: from, to: to, weight: weight)
80
let edgeList = adjacencyList[from.index]
81
- if let _ = edgeList.edges {
+ if edgeList.edges != nil {
82
edgeList.addEdge(edge)
83
} else {
84
edgeList.edges = [edge]
0 commit comments