ITensorNetworks.jl
ITensorNetworks.jl copied to clipboard
Allow passing a `Graphs.SimpleGraph` to `siteinds`
Allow passing Graphs.SimpleGraph to siteinds(site_type::String, graph).
Also define a default constructor NamedDimGraph(g::SimpleGraph) = NamedDimGraph(g, 1:nv(g)) which could be used internally in siteinds(::String, graph).
Originally posted by @mtfishman in https://github.com/mtfishman/ITensorNetworks.jl/pull/6#discussion_r978956086
It seems the constructor NamedDimGraph(g::SimpleGraph) already works thanks to NamedGraphs.default_vertices.