Skip to content

Commit d067071

Browse files
committed
access src, dst, and edges from Graphs
1 parent 871ea8e commit d067071

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/incidence_matrix.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ function incidence_matrix(
7070
val = Vector{Float64}()
7171
M = length(igraph._con_node_map)
7272
N = length(igraph._var_node_map)
73-
for e in edges(igraph._graph)
74-
i = src(e)
75-
j = dst(e)
73+
for e in Graphs.edges(igraph._graph)
74+
i = Graphs.src(e)
75+
j = Graphs.dst(e)
7676
if typeof(igraph._nodes[i]) <: JuMP.VariableRef
7777
i, j = j, i
7878
end

0 commit comments

Comments
 (0)