ITensor / NamedGraphs.jl

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

Change the design of `GenericNamedGraph` type #70

Closed mtfishman closed 6 months ago

mtfishman commented 6 months ago

Change the design of parent_graph, vertex_to_parent_vertex, etc. using a type like OrderedCollections.OrderedSet, AcceleratedArrays.jl, or OrdinalIndexing.jl. A better name for parent_graph would be ordinal_graph (indicating the vertices are ordered integers), and ordinal_vertices/ordinal_vertex could refer to the integer vertices of the ordinal_graph. vertices could be an ordered AbstractVector of the named vertices with fast lookup of the vertex positions in the ordinal_graph.

Name change summary: