Open
Description
Implement overloads of Graphs.union
for DataGraphs
, like ITensorNetwork
and IndsNetwork
(see the definition on Wikidedia as the graph resulting from taking the union of the vertices and edges of the two graphs).
An application is merging the indices of two IndsNetwork
s (i.e. unioning the indices of shared vertices and edges), for example functionality being added in #9.
A generic interface will have to handle how to merge the metadata of vertices and edges that are shared by the two graphs being unioned, such as passing a custom function that defines how the merge will happen.
Originally posted by @mtfishman in #9 (comment)
Metadata
Metadata
Assignees
Labels
No labels