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 = """
178
178
"""
179
179
180
180
# 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!"
182
182
183
183
# let's now write our graph!
184
184
gds.run_cypher(data_query)
@@ -231,21 +231,6 @@ G, result = gds.graph.project(
231
231
str(G)
232
232
----
233
233
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
-
249
234
== Running Algorithms
250
235
251
236
We can now run algorithms on the projected graph. This is done using the
Original file line number Diff line number Diff line change 235
235
" \"\"\"\n " ,
236
236
" \n " ,
237
237
" # 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 " ,
239
239
" \n " ,
240
240
" # let's now write our graph!\n " ,
241
241
" gds.run_cypher(data_query)\n " ,
294
294
" str(G)"
295
295
]
296
296
},
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
- },
324
297
{
325
298
"cell_type" : " markdown" ,
326
299
"metadata" : {},
You can’t perform that action at this time.
0 commit comments