Skip to content

Commit bc9265e

Browse files
authored
More exports (#108)
1 parent f9492ce commit bc9265e

File tree

4 files changed

+39
-2
lines changed

4 files changed

+39
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "NamedGraphs"
22
uuid = "678767b0-92e7-4007-89e4-4527a8725b19"
33
authors = ["Matthew Fishman <[email protected]>, Joseph Tindall <[email protected]> and contributors"]
4-
version = "0.7.2"
4+
version = "0.7.3"
55

66
[deps]
77
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"

src/NamedGraphs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ include("namedgraph.jl")
2020
include("lib/NamedGraphGenerators/src/NamedGraphGenerators.jl")
2121
include("lib/PartitionedGraphs/src/PartitionedGraphs.jl")
2222

23-
export AbstractNamedGraphs, NamedDiGraph, NamedEdge, NamedGraph
23+
export AbstractNamedGraph, NamedDiGraph, NamedEdge, NamedGraph
2424

2525
using PackageExtensionCompat: @require_extensions
2626
function __init__()

src/lib/NamedGraphGenerators/src/NamedGraphGenerators.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ using ..GraphsExtensions: add_edges!, rem_vertices!
1616
using ..NamedGraphs: NamedGraph
1717
using SimpleTraits: SimpleTraits, Not, @traitfn
1818

19+
export named_binary_tree,
20+
named_comb_tree,
21+
named_grid,
22+
named_hexagonal_lattice_graph,
23+
named_path_digraph,
24+
named_path_graph,
25+
named_triangular_lattice_graph
26+
1927
## TODO: Bring this back in some form?
2028
## TODO: Move to `GraphsExtensions`?
2129
## @traitfn function parent(tree::AbstractSimpleGraph::IsDirected, v::Integer)

test/test_exports.jl

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
using NamedGraphs: NamedGraphs, NamedGraphGenerators
2+
using Test: @test, @testset
3+
4+
@testset "Test exports" begin
5+
@testset "NamedGraphs" begin
6+
exports = [
7+
:NamedGraphs,
8+
:AbstractNamedGraph,
9+
:NamedDiGraph,
10+
:NamedEdge,
11+
:NamedGraph,
12+
]
13+
@test issetequal(names(NamedGraphs), exports)
14+
end
15+
16+
@testset "NamedGraphGenerators" begin
17+
exports = [
18+
:NamedGraphGenerators,
19+
:named_binary_tree,
20+
:named_comb_tree,
21+
:named_grid,
22+
:named_hexagonal_lattice_graph,
23+
:named_path_digraph,
24+
:named_path_graph,
25+
:named_triangular_lattice_graph,
26+
]
27+
@test issetequal(names(NamedGraphGenerators), exports)
28+
end
29+
end

0 commit comments

Comments
 (0)