File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ edges(g::AbstractSimpleGraph) = SimpleEdgeIter(g)
142
142
fadj (g:: AbstractSimpleGraph ) = g. fadjlist
143
143
fadj (g:: AbstractSimpleGraph , v:: Integer ) = g. fadjlist[v]
144
144
145
- function badj end
145
+ badj (x ... ) = _NI ( " badj " )
146
146
147
147
# handles single-argument edge constructors such as pairs and tuples
148
148
has_edge (g:: AbstractSimpleGraph , x) = has_edge (g, edgetype (g)(x))
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ using Random: Random
9
9
@test @inferred (eltype (SimpleGraph (adjmx1))) == Int
10
10
@test_throws ArgumentError SimpleGraph (adjmx2)
11
11
12
- @test_throws MethodError badj (DummySimpleGraph ())
12
+ @test_throws Graphs . NotImplementedError badj (DummySimpleGraph ())
13
13
14
14
@test @inferred (ne (SimpleGraph (path_digraph (5 )))) == 4
15
15
@test @inferred (! is_directed (SimpleGraph))
You can’t perform that action at this time.
0 commit comments