|
28 | 28 | "source": [ |
29 | 29 | "This Jupyter notebook is hosted [here](https://github.com/neo4j/graph-data-science-client/blob/main/examples/graph-analytics-serverless-standalone.ipynb) in the Neo4j Graph Data Science Client Github repository.\n", |
30 | 30 | "\n", |
31 | | - "The notebook shows how to use the `graphdatascience` Python library to create, manage, and use a GDS Session.\n", |
| 31 | + "The notebook shows how to use the `graphdatascience` Python library to create, manage, and use an Aura Graph Analytics (AGA) Session.\n", |
32 | 32 | "\n", |
33 | | - "We consider a graph of people and fruits, which we're using as a simple example to show how to load data from Pandas `DataFrame` to a GDS Session, run algorithms, and inspect the results. \n", |
| 33 | + "We consider a graph of people and fruits, which we're using as a simple example to show how to load data from Pandas `DataFrame` to an AGA Session, run algorithms, and inspect the results.\n", |
34 | 34 | "We will cover all management operations: creation, listing, and deletion.\n", |
35 | 35 | "\n", |
36 | 36 | "If you are using AuraDB, follow [this example](../graph-analytics-serverless).\n", |
|
194 | 194 | "cell_type": "markdown", |
195 | 195 | "metadata": {}, |
196 | 196 | "source": [ |
197 | | - "## Adding a dataset\n", |
| 197 | + "## Projecting a dataset\n", |
198 | 198 | "\n", |
199 | | - "We assume that the configured Neo4j database instance is empty.\n", |
200 | | - "We will add our dataset using standard Cypher.\n", |
| 199 | + "AGA sessions always start empty, with no data.\n", |
| 200 | + "So our first step will be to project data into the session.\n", |
| 201 | + "In this example, we will illustrate how to do this using Pandas DataFrames.\n", |
201 | 202 | "\n", |
202 | | - "In a more realistic scenario, this step is already done, and we would just connect to the existing database." |
| 203 | + "Many systems offer ways to read data into Pandas DataFrames, enabling these systems to be used as data sources for AGA.\n", |
| 204 | + "For simplicity, we will define the DataFrames used in this notebook by hand." |
203 | 205 | ] |
204 | 206 | }, |
205 | 207 | { |
|
249 | 251 | "source": [ |
250 | 252 | "## Construct Graph from DataFrames\n", |
251 | 253 | "\n", |
252 | | - "Now that we have imported a graph to our database, we create graphs directly from pandas `DataFrame` objects.\n", |
253 | | - "We do that by using the `gds.graph.construct()` method." |
| 254 | + "With DataFrames in hand, the next step is to build a graph from them.\n", |
| 255 | + "We do that by using the `gds.graph.construct()` function.\n", |
| 256 | + "\n", |
| 257 | + "After calling this function, we will get a Graph Object back, representing the graph that now exists within the AGA session.\n", |
| 258 | + "We will use it as input to the various algorithms that we will run on the graph." |
254 | 259 | ] |
255 | 260 | }, |
256 | 261 | { |
|
0 commit comments