Skip to content

Implement Graphs.union for ITensorNetwork (or general DataGraphs) #14

Open
@mtfishman

Description

@mtfishman

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 IndsNetworks (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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions