Skip to content

Commit bf64845

Browse files
authored
Merge pull request #864 from Mats-SX/fix
Fix mistakenly committed stuff
2 parents e4c35db + c7e0ac2 commit bf64845

File tree

2 files changed

+2
-44
lines changed

2 files changed

+2
-44
lines changed

doc/modules/ROOT/pages/tutorials/gds-sessions.adoc

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff 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!
184184
gds.run_cypher(data_query)
@@ -231,21 +231,6 @@ G, result = gds.graph.project(
231231
str(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

251236
We can now run algorithms on the projected graph. This is done using the

examples/gds-sessions.ipynb

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
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",
@@ -294,33 +294,6 @@
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": {},

0 commit comments

Comments
 (0)