File tree Expand file tree Collapse file tree 2 files changed +2
-44
lines changed
doc/modules/ROOT/pages/tutorials Expand file tree Collapse file tree 2 files changed +2
-44
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ data_query = """
178178"""
179179
180180# making sure the database is actually empty
181- # assert gds.run_cypher("MATCH (n) RETURN count(n)").squeeze() == 0, "Database is not empty!"
181+ assert gds.run_cypher("MATCH (n) RETURN count(n)").squeeze() == 0, "Database is not empty!"
182182
183183# let's now write our graph!
184184gds.run_cypher(data_query)
@@ -231,21 +231,6 @@ G, result = gds.graph.project(
231231str(G)
232232----
233233
234- [source, python, role=no-test]
235- ----
236- G = gds.graph.get("people-and-fruits")
237- ----
238-
239- [source, python, role=no-test]
240- ----
241- gds.graph.list()
242- ----
243-
244- [source, python, role=no-test]
245- ----
246- gds.wcc.mutate(G, mutateProperty="wcc2")
247- ----
248-
249234== Running Algorithms
250235
251236We can now run algorithms on the projected graph. This is done using the
Original file line number Diff line number Diff line change 235235 " \"\"\"\n " ,
236236 " \n " ,
237237 " # making sure the database is actually empty\n " ,
238- " # assert gds.run_cypher(\" MATCH (n) RETURN count(n)\" ).squeeze() == 0, \" Database is not empty!\"\n " ,
238+ " assert gds.run_cypher(\" MATCH (n) RETURN count(n)\" ).squeeze() == 0, \" Database is not empty!\"\n " ,
239239 " \n " ,
240240 " # let's now write our graph!\n " ,
241241 " gds.run_cypher(data_query)\n " ,
294294 " str(G)"
295295 ]
296296 },
297- {
298- "cell_type" : " code" ,
299- "execution_count" : null ,
300- "metadata" : {},
301- "outputs" : [],
302- "source" : [
303- " G = gds.graph.get(\" people-and-fruits\" )"
304- ]
305- },
306- {
307- "cell_type" : " code" ,
308- "execution_count" : null ,
309- "metadata" : {},
310- "outputs" : [],
311- "source" : [
312- " gds.graph.list()"
313- ]
314- },
315- {
316- "cell_type" : " code" ,
317- "execution_count" : null ,
318- "metadata" : {},
319- "outputs" : [],
320- "source" : [
321- " gds.wcc.mutate(G, mutateProperty=\" wcc2\" )"
322- ]
323- },
324297 {
325298 "cell_type" : " markdown" ,
326299 "metadata" : {},
You can’t perform that action at this time.
0 commit comments