Skip to content

Commit 3ae1202

Browse files
authored
Upgrade to NamedGraphs v0.7 (#256)
1 parent 11e1c83 commit 3ae1202

File tree

5 files changed

+18
-17
lines changed

5 files changed

+18
-17
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ITensorNetworks"
22
uuid = "2919e153-833c-4bdc-8836-1ea460a35fc7"
33
authors = ["Matthew Fishman <[email protected]>, Joseph Tindall <[email protected]> and contributors"]
4-
version = "0.14.1"
4+
version = "0.14.2"
55

66
[deps]
77
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
@@ -66,7 +66,7 @@ IterTools = "1.4.0"
6666
KrylovKit = "0.6, 0.7, 0.8, 0.9, 0.10"
6767
MacroTools = "0.5"
6868
NDTensors = "0.3, 0.4"
69-
NamedGraphs = "0.6.0"
69+
NamedGraphs = "0.7.1"
7070
OMEinsumContractionOrders = "0.8.3, 0.9, 1"
7171
Observers = "0.2.4"
7272
SerializedElementArrays = "0.1"

src/caches/abstractbeliefpropagationcache.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ end
158158

159159
#Forward from partitioned graph
160160
for f in [
161-
:(PartitionedGraphs.partitioned_graph),
162161
:(PartitionedGraphs.partitionedge),
163162
:(PartitionedGraphs.partitionvertices),
163+
:(PartitionedGraphs.partitions_graph),
164164
:(PartitionedGraphs.vertices),
165165
:(PartitionedGraphs.boundary_partitionedges),
166166
]

src/caches/beliefpropagationcache.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ using NamedGraphs.PartitionedGraphs:
1111
partitionvertices,
1212
partitionedges,
1313
partitioned_vertices,
14+
partitions_graph,
1415
unpartitioned_graph,
1516
which_partition
1617
using SimpleTraits: SimpleTraits, Not, @traitfn
@@ -95,7 +96,7 @@ function set_default_kwargs(alg::Algorithm"bp", bp_cache::BeliefPropagationCache
9596
end
9697

9798
function default_bp_maxiter(bp_cache::BeliefPropagationCache)
98-
return default_bp_maxiter(partitioned_graph(bp_cache))
99+
return default_bp_maxiter(partitions_graph(bp_cache))
99100
end
100101
function default_bp_edge_sequence(bp_cache::BeliefPropagationCache)
101102
return default_edge_sequence(partitioned_tensornetwork(bp_cache))

src/edge_sequences.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ using Graphs: IsDirected, connected_components, edges, edgetype
22
using ITensors.NDTensors: Algorithm, @Algorithm_str
33
using NamedGraphs: NamedGraphs
44
using NamedGraphs.GraphsExtensions: GraphsExtensions, forest_cover, undirected_graph
5-
using NamedGraphs.PartitionedGraphs: PartitionEdge, PartitionedGraph, partitioned_graph
5+
using NamedGraphs.PartitionedGraphs: PartitionEdge, PartitionedGraph, partitions_graph
66
using SimpleTraits: SimpleTraits, Not, @traitfn
77

88
default_edge_sequence_alg() = "forest_cover"
99
function default_edge_sequence(pg::PartitionedGraph)
10-
return PartitionEdge.(edge_sequence(partitioned_graph(pg)))
10+
return PartitionEdge.(edge_sequence(partitions_graph(pg)))
1111
end
1212

1313
@traitfn function edge_sequence(

test/Project.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,33 +33,33 @@ UnicodePlots = "b8865327-cd53-5732-bb35-84acbb429228"
3333

3434
[compat]
3535
AbstractTrees = "0.4.5"
36-
Adapt = "4.3.0"
36+
Adapt = "4.3"
3737
Aqua = "0.8.11"
38-
Compat = "4.16.0"
38+
Compat = "4.16"
3939
DataGraphs = "0.2.6"
4040
Dictionaries = "0.4.4"
4141
Distributions = "0.25.118"
4242
EinExprs = "0.6.8, 0.7"
4343
Glob = "1.3.1"
44-
Graphs = "1.12.0"
44+
Graphs = "1.12"
4545
GraphsFlows = "0.1.1"
4646
ITensorMPS = "0.3.6"
4747
ITensorNetworks = "0.14.1"
4848
ITensors = "0.7, 0.8, 0.9"
4949
KrylovKit = "0.8, 0.9, 0.10"
50-
LinearAlgebra = "1.10.0"
51-
Metis = "1.5.0"
50+
LinearAlgebra = "1.10"
51+
Metis = "1.5"
5252
NDTensors = "0.3, 0.4"
53-
NamedGraphs = "0.6.6"
53+
NamedGraphs = "0.7"
5454
OMEinsumContractionOrders = "0.9.5, 1"
5555
Observers = "0.2.5"
56-
OrdinaryDiffEqTsit5 = "1.1.0"
57-
Pkg = "1.10.0"
58-
Random = "1.10.0"
59-
SafeTestsets = "0.1.0"
56+
OrdinaryDiffEqTsit5 = "1.1"
57+
Pkg = "1.10"
58+
Random = "1.10"
59+
SafeTestsets = "0.1"
6060
SplitApplyCombine = "1.2.3"
6161
StableRNGs = "1.0.2"
6262
Suppressor = "0.2.8"
6363
TensorOperations = "5.1.4"
64-
Test = "1.10.0"
64+
Test = "1.10"
6565
UnicodePlots = "3.7.2"

0 commit comments

Comments
 (0)