Skip to content

Commit b75779d

Browse files
committed
Cleanup based on NamedGraphs update
1 parent 98184be commit b75779d

File tree

5 files changed

+4
-31
lines changed

5 files changed

+4
-31
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Graphs = "1.13.1"
2525
LinearAlgebra = "1.10"
2626
MacroTools = "0.5.16"
2727
NamedDimsArrays = "0.7.13"
28-
NamedGraphs = "0.6.8"
28+
NamedGraphs = "0.6.9"
2929
SimpleTraits = "0.9.5"
3030
SplitApplyCombine = "1.2.3"
3131
julia = "1.10"

src/ITensorNetworksNext.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module ITensorNetworksNext
22

3-
include("graphsextensions.jl")
43
include("abstracttensornetwork.jl")
54
include("tensornetwork.jl")
65

src/abstracttensornetwork.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ using MacroTools: @capture
3131
using NamedDimsArrays: dimnames
3232
using NamedGraphs: NamedGraphs, NamedGraph, not_implemented, steiner_tree
3333
using NamedGraphs.GraphsExtensions:
34-
, directed_graph, incident_edges, rename_vertices, vertextype
34+
, directed_graph, incident_edges, rem_edges!, rename_vertices, vertextype
3535
using SplitApplyCombine: flatten
3636

3737
abstract type AbstractTensorNetwork{V,VD} <: AbstractDataGraph{V,VD,Nothing} end
@@ -203,6 +203,7 @@ end
203203
# the tensor connectivity at vertex `v`.
204204
function fix_edges!(tn::AbstractTensorNetwork, v)
205205
rem_incident_edges!(tn, v)
206+
rem_edges!(tn, incident_edges(tn, v))
206207
add_missing_edges!(tn, v)
207208
return tn
208209
end

src/graphsextensions.jl

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/tensornetwork.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using Dictionaries: AbstractDictionary, Indices, dictionary
33
using Graphs: AbstractSimpleGraph
44
using NamedDimsArrays: AbstractNamedDimsArray, dimnames, nameddimsarray
55
using NamedGraphs: NamedGraphs, NamedEdge, NamedGraph, vertextype
6-
using NamedGraphs.GraphsExtensions: vertextype
6+
using NamedGraphs.GraphsExtensions: arranged_edges, vertextype
77

88
function _TensorNetwork end
99

0 commit comments

Comments
 (0)