Skip to content

Commit 77065c0

Browse files
committed
removed set membership
1 parent d7b4d47 commit 77065c0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/staticgraph.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ badj(g::StaticGraph, s) = fadj(g, s)
4444

4545
ne(g::StaticGraph{T, U}) where T where U = U(length(g.f_vec) ÷ 2)
4646

47-
function in(e::StaticGraphEdge, g::StaticGraph)
47+
function has_edge(e::StaticGraphEdge, g::StaticGraph)
4848
u, v = Tuple(e)
4949
(u > nv(g) || v > nv(g)) && return false
5050
if degree(g, u) > degree(g, v)
@@ -53,8 +53,6 @@ function in(e::StaticGraphEdge, g::StaticGraph)
5353
return insorted(v, fadj(g, u))
5454
end
5555

56-
has_edge(g::StaticGraph, e::StaticGraphEdge) = in(e, g)
57-
5856
==(g::StaticGraph, h::StaticGraph) = g.f_vec == h.f_vec && g.f_ind == h.f_ind
5957

6058
degree(g::StaticGraph{T, U}, v::Integer) where T where U = T(length(_fvrange(g, v)))

0 commit comments

Comments
 (0)