-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gds.graph.construct replace existing projection #655
Comments
Hello @Mintactus and thank you for this feature request! While we understand how this parameter could make sense in some use cases, we want to point out that it is very easy to drop a projected graph. There are multiple ways to do this with minimal Python code: Use the graph as a context manager:
Use the
Use the
Use the
I hope these alternatives will cover your use cases without the need for an additional parameter. All the best |
Since I'm building the graph from a dataframe, and running the same ETL process multiple times, I can't use these options because the graph object doesn't exist yet ( unless I create it using get) , but the projection does because of the previous iteration. It looks like this... create_markov_chain_nodes() In general, I would say it's really great to have Idempotent workflows for massive tests purpose |
As I showed above, it is not necessary to have a graph object to drop the graph. You can use just the graph name. If you do not know the graph name (because it is randomly generated or something), you can drop all graphs by using As far as I understand, the workflow you show with the Mats |
For testing purposes, having a replace parameter for gds.graph.construct would be really great.
Set to false by default, when true the existing projection is replaced if there is one.
The text was updated successfully, but these errors were encountered: