Skip to content

Create a graph if it does not exist, update if otherwise #22

Description

@mitchwagner

I frequently find myself writing the following construct, to check if a graph exists or not, to either post or update it:

if graph_id == None:
    graphspace_instance.post_graph(G)
else:   
    graphspace_instance.update_graph(G)

It would be helpful to have a built-in wrapper around that performs this check automatically.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions