diff --git a/Project.toml b/Project.toml index 82abb2e5..c5501f82 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ITensorNetworks" uuid = "2919e153-833c-4bdc-8836-1ea460a35fc7" authors = ["Matthew Fishman , Joseph Tindall and contributors"] -version = "0.14.1" +version = "0.14.2" [deps] AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c" @@ -66,7 +66,7 @@ IterTools = "1.4.0" KrylovKit = "0.6, 0.7, 0.8, 0.9, 0.10" MacroTools = "0.5" NDTensors = "0.3, 0.4" -NamedGraphs = "0.6.0" +NamedGraphs = "0.7.1" OMEinsumContractionOrders = "0.8.3, 0.9, 1" Observers = "0.2.4" SerializedElementArrays = "0.1" diff --git a/src/caches/abstractbeliefpropagationcache.jl b/src/caches/abstractbeliefpropagationcache.jl index 17703f5d..b29d2996 100644 --- a/src/caches/abstractbeliefpropagationcache.jl +++ b/src/caches/abstractbeliefpropagationcache.jl @@ -158,9 +158,9 @@ end #Forward from partitioned graph for f in [ - :(PartitionedGraphs.partitioned_graph), :(PartitionedGraphs.partitionedge), :(PartitionedGraphs.partitionvertices), + :(PartitionedGraphs.partitions_graph), :(PartitionedGraphs.vertices), :(PartitionedGraphs.boundary_partitionedges), ] diff --git a/src/caches/beliefpropagationcache.jl b/src/caches/beliefpropagationcache.jl index 892f7470..36d01461 100644 --- a/src/caches/beliefpropagationcache.jl +++ b/src/caches/beliefpropagationcache.jl @@ -11,6 +11,7 @@ using NamedGraphs.PartitionedGraphs: partitionvertices, partitionedges, partitioned_vertices, + partitions_graph, unpartitioned_graph, which_partition using SimpleTraits: SimpleTraits, Not, @traitfn @@ -95,7 +96,7 @@ function set_default_kwargs(alg::Algorithm"bp", bp_cache::BeliefPropagationCache end function default_bp_maxiter(bp_cache::BeliefPropagationCache) - return default_bp_maxiter(partitioned_graph(bp_cache)) + return default_bp_maxiter(partitions_graph(bp_cache)) end function default_bp_edge_sequence(bp_cache::BeliefPropagationCache) return default_edge_sequence(partitioned_tensornetwork(bp_cache)) diff --git a/src/edge_sequences.jl b/src/edge_sequences.jl index 9dab9fff..b8e55392 100644 --- a/src/edge_sequences.jl +++ b/src/edge_sequences.jl @@ -2,12 +2,12 @@ using Graphs: IsDirected, connected_components, edges, edgetype using ITensors.NDTensors: Algorithm, @Algorithm_str using NamedGraphs: NamedGraphs using NamedGraphs.GraphsExtensions: GraphsExtensions, forest_cover, undirected_graph -using NamedGraphs.PartitionedGraphs: PartitionEdge, PartitionedGraph, partitioned_graph +using NamedGraphs.PartitionedGraphs: PartitionEdge, PartitionedGraph, partitions_graph using SimpleTraits: SimpleTraits, Not, @traitfn default_edge_sequence_alg() = "forest_cover" function default_edge_sequence(pg::PartitionedGraph) - return PartitionEdge.(edge_sequence(partitioned_graph(pg))) + return PartitionEdge.(edge_sequence(partitions_graph(pg))) end @traitfn function edge_sequence( diff --git a/test/Project.toml b/test/Project.toml index d15f1af5..ce1d1bae 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -33,33 +33,33 @@ UnicodePlots = "b8865327-cd53-5732-bb35-84acbb429228" [compat] AbstractTrees = "0.4.5" -Adapt = "4.3.0" +Adapt = "4.3" Aqua = "0.8.11" -Compat = "4.16.0" +Compat = "4.16" DataGraphs = "0.2.6" Dictionaries = "0.4.4" Distributions = "0.25.118" EinExprs = "0.6.8, 0.7" Glob = "1.3.1" -Graphs = "1.12.0" +Graphs = "1.12" GraphsFlows = "0.1.1" ITensorMPS = "0.3.6" ITensorNetworks = "0.14.1" ITensors = "0.7, 0.8, 0.9" KrylovKit = "0.8, 0.9, 0.10" -LinearAlgebra = "1.10.0" -Metis = "1.5.0" +LinearAlgebra = "1.10" +Metis = "1.5" NDTensors = "0.3, 0.4" -NamedGraphs = "0.6.6" +NamedGraphs = "0.7" OMEinsumContractionOrders = "0.9.5, 1" Observers = "0.2.5" -OrdinaryDiffEqTsit5 = "1.1.0" -Pkg = "1.10.0" -Random = "1.10.0" -SafeTestsets = "0.1.0" +OrdinaryDiffEqTsit5 = "1.1" +Pkg = "1.10" +Random = "1.10" +SafeTestsets = "0.1" SplitApplyCombine = "1.2.3" StableRNGs = "1.0.2" Suppressor = "0.2.8" TensorOperations = "5.1.4" -Test = "1.10.0" +Test = "1.10" UnicodePlots = "3.7.2"