Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed Apr 17, 2024
1 parent 2cc2721 commit 240f8bd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/Graphs/abstractgraph.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# TODO: Move to `Graphs.GraphsExtensions`.
using Graphs: AbstractGraph, IsDirected, a_star
using NamedGraphs.GraphsExtensions: child_vertices, is_leaf, undirected_graph, parent_vertex
using SimpleTraits: @traitfn
using SimpleTraits: SimpleTraits, Not, @traitfn

"""Determine if an edge involves a leaf (at src or dst)"""
function is_leaf_edge(g::AbstractGraph, e)
Expand Down
3 changes: 1 addition & 2 deletions src/caches/beliefpropagationcache.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ using NamedGraphs.PartitionedGraphs:
partitionvertices,
partitionedges,
unpartitioned_graph
using SimpleTraits: SimpleTraits, @traitfn, Not
using SimpleTraits
using SimpleTraits: SimpleTraits, Not, @traitfn

default_message(inds_e) = ITensor[denseblocks(delta(inds_e))]
default_messages(ptn::PartitionedGraph) = Dictionary()
Expand Down
3 changes: 1 addition & 2 deletions src/edge_sequences.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ 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 SimpleTraits: SimpleTraits, @traitfn, Not
using SimpleTraits
using SimpleTraits: SimpleTraits, Not, @traitfn

default_edge_sequence_alg() = "forest_cover"
function default_edge_sequence(pg::PartitionedGraph)
Expand Down
1 change: 0 additions & 1 deletion src/indsnetwork.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ using NamedGraphs: NamedGraphs, AbstractNamedGraph, NamedEdge, NamedGraph
using NamedGraphs.GraphsExtensions: vertextype
using NamedGraphs.NamedGraphGenerators: named_path_graph
using SimpleTraits: SimpleTraits, Not, @traitfn
using SimpleTraits

struct IndsNetwork{V,I} <: AbstractIndsNetwork{V,I}
data_graph::DataGraph{V,Vector{I},Vector{I},NamedGraph{V},NamedEdge{V}}
Expand Down

0 comments on commit 240f8bd

Please sign in to comment.