Skip to content

Commit

Permalink
Update style of Graph
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-ash committed Aug 29, 2020
1 parent 491be71 commit 617187b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
8 changes: 8 additions & 0 deletions Graph/Graph.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
15 changes: 7 additions & 8 deletions Graph/Graph/Edge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,13 @@ extension Edge: CustomStringConvertible {

extension Edge: Hashable {

public func hash(into hasher: inout Hasher) {
hasher.combine(from)
hasher.combine(to)
if weight != nil {
hasher.combine(weight)
}
}

public func hash(into hasher: inout Hasher) {
hasher.combine(from)
hasher.combine(to)
if weight != nil {
hasher.combine(weight)
}
}

}

Expand Down

0 comments on commit 617187b

Please sign in to comment.