Skip to content

Commit

Permalink
tets directedness directly
Browse files Browse the repository at this point in the history
  • Loading branch information
stecrotti committed Oct 9, 2023
1 parent f92ccb1 commit 8cb7f53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/bipartite.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ using Graphs, IndexedGraphs, SparseArrays
@test all(collect(outedges(g,i)) == collect(outedges(gb, i)) for i in vertices(g))
@test all(degree(g, i) == length(collect(neighbors(g, i))) for i in vertices(g))
@test all(degree(g, i) == length(collect(inedges(g, i))) for i in vertices(g))
@test !is_directed(g) && !is_directed(typeof(g))
@test adjacency_matrix(gb) == adjacency_matrix(g)

distmx = adjacency_matrix(g) .* rand(n,n)
Expand Down

0 comments on commit 8cb7f53

Please sign in to comment.