ITensor / NamedGraphs.jl

Extension of `Graphs.jl` to graphs with named vertices.
MIT License
6 stars 3 forks source link

Simplify `NamedGraph` constructors #61

Closed mtfishman closed 6 months ago

mtfishman commented 6 months ago

Removes NamedGraph(path_graph(3); vertices=["a", "b", "c"]) in favor of NamedGraph(path_graph(3), ["a", "b", "c"]), and NamedGraph(grid((2, 2)); vertices=(2, 2)) in favor of NamedGraph(grid((2, 2)), Tuple.(CartesianIndices((2, 2)))), which may be simplified to cartesian_graph(grid((2, 2)), (2, 2)) in the future (#42).