Skip to content

Commit 1df10ce

Browse files
authored
Update simpleweighteddigraph.jl (#68)
Fixes sbromberger/LightGraphs.jl#1523 and #67.
1 parent abf687d commit 1df10ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/simpleweighteddigraph.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function SimpleWeightedDiGraph(i::AbstractVector{T}, j::AbstractVector{T}, v::Ab
7878
SimpleWeightedDiGraph{T, U}(sparse(j, i, v, m, m, combine), permute=false)
7979
end
8080

81-
LightGraphs.SimpleDiGraph(g::SimpleWeightedDiGraph) = SimpleDiGraph(g.weights)
81+
LightGraphs.SimpleDiGraph(g::SimpleWeightedDiGraph) = SimpleDiGraph(g.weights')
8282

8383
edgetype(::SimpleWeightedDiGraph{T, U}) where T<:Integer where U<:Real = SimpleWeightedGraphEdge{T,U}
8484

0 commit comments

Comments
 (0)