Skip to content

Commit

Permalink
Update regiongraph.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
xiuliren authored Sep 16, 2016
1 parent 7e7dd97 commit f3a171a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/regiongraph.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function regiongraph{Ta,Ts}(aff::Array{Ta,4},seg::Array{Ts,3},max_segid)
low = convert(Ta,0) # choose a value lower than any affinity in the region graph

# edge list representation
edges=DefaultDict(Tuple{Ts,Ts},Ta,low)
edges=DefaultOrderedDict(Tuple{Ts,Ts},Ta,low)
# keys are vertex pairs (i,j) where i \leq j
# values are edge weights
# efficiency is competitive with Array of Dicts and code is simpler
Expand Down

0 comments on commit f3a171a

Please sign in to comment.