diff --git a/Project.toml b/Project.toml index 82abb2e5..94de1bea 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.0" 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..5ad33936 100644 --- a/src/caches/abstractbeliefpropagationcache.jl +++ b/src/caches/abstractbeliefpropagationcache.jl @@ -158,7 +158,7 @@ end #Forward from partitioned graph for f in [ - :(PartitionedGraphs.partitioned_graph), + :(PartitionedGraphs.partitions_graph), :(PartitionedGraphs.partitionedge), :(PartitionedGraphs.partitionvertices), :(PartitionedGraphs.vertices), diff --git a/src/caches/beliefpropagationcache.jl b/src/caches/beliefpropagationcache.jl index 892f7470..ed2c8e22 100644 --- a/src/caches/beliefpropagationcache.jl +++ b/src/caches/beliefpropagationcache.jl @@ -95,7 +95,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..be51323f 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -50,7 +50,7 @@ KrylovKit = "0.8, 0.9, 0.10" LinearAlgebra = "1.10.0" Metis = "1.5.0" NDTensors = "0.3, 0.4" -NamedGraphs = "0.6.6" +NamedGraphs = "0.7.0" OMEinsumContractionOrders = "0.9.5, 1" Observers = "0.2.5" OrdinaryDiffEqTsit5 = "1.1.0"