Skip to content

Commit

Permalink
PackageExtensionCompat
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed Apr 17, 2024
1 parent ab1bc17 commit 063aa2f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,26 @@ version = "0.2.0"
Dictionaries = "85a47980-9c8c-11e8-2b9f-f7ca1fa99fb4"
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
NamedGraphs = "678767b0-92e7-4007-89e4-4527a8725b19"
PackageExtensionCompat = "65ce6f38-6b18-4e1d-a461-8949797d7930"
SimpleTraits = "699a6c99-e7fa-54fc-8d76-47d257e15c1d"

[weakdeps]
GraphsFlows = "06909019-6f44-4949-96fc-b9d9aaa02889"
# NamedGraphs = "678767b0-92e7-4007-89e4-4527a8725b19"

[extensions]
DataGraphsGraphsFlowsExt = "GraphsFlows"
# DataGraphsNamedGraphsExt = "GraphsFlows"

[compat]
Dictionaries = "0.4"
Graphs = "1"
GraphsFlows = "0.1.1"
NamedGraphs = "0.4"
PackageExtensionCompat = "1"
SimpleTraits = "0.9"
julia = "1.7"

[extras]
GraphsFlows = "06909019-6f44-4949-96fc-b9d9aaa02889"
# NamedGraphs = "678767b0-92e7-4007-89e4-4527a8725b19"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
Expand Down
5 changes: 5 additions & 0 deletions src/DataGraphs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ include("datagraph.jl")
include("../ext/DataGraphsNamedGraphsExt/DataGraphsNamedGraphsExt.jl")

export AbstractDataGraph, DataGraph

using PackageExtensionCompat: @require_extensions
function __init__()
@require_extensions
end
end
3 changes: 2 additions & 1 deletion src/abstractdatagraph.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Dictionaries: set!, unset!
using Graphs: Graphs, AbstractEdge, AbstractGraph, IsDirected, add_edge!, edges, vertices
using Graphs:
Graphs, AbstractEdge, AbstractGraph, IsDirected, add_edge!, edges, ne, nv, vertices
using NamedGraphs.GraphsExtensions: GraphsExtensions, incident_edges, vertextype
using SimpleTraits: SimpleTraits, @traitfn

Expand Down

0 comments on commit 063aa2f

Please sign in to comment.