Skip to content

Commit 48dc230

Browse files
DarthMaxMats-SX
andcommitted
Address review comments
Co-authored-by: Mats Rydberg <mats@neotechnology.com>
1 parent d16226b commit 48dc230

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/asciidoc/pythonclient/python-client-graph-object.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,17 @@ relationships = pandas.DataFrame(
6969
"sourceId": [0, 1, 2, 3],
7070
"targetId": [1, 2, 3, 0],
7171
"type": ["REL", "REL", "REL", "REL"],
72-
"weight": [0.0, 0.0, 1.0, 42.0]
72+
"weight": [0.0, 0.0, 0.1, 42.0]
7373
)
7474
7575
G = gds.alpha.graph.construct(
7676
"my-graph", # Graph name
77-
nodes, # One or more dataframes describing the nodes
78-
relationships # One or more dataframes describing the relationships
77+
nodes, # One or more dataframes containing node data
78+
relationships # One or more dataframes containing relationship data
7979
)
8080
----
8181

82-
The above examples create a simple graph using one node and one relationship `DataFrame`.
82+
The above example creates a simple graph using one node and one relationship `DataFrame`.
8383
The created graph is equivalent to a graph created by the following Cypher query:
8484

8585
[source, cypher]
@@ -95,7 +95,7 @@ CREATE
9595
(d)-[:REL {weight: 42.0}]->(a),
9696
----
9797

98-
It is possible to supply more than one data frame for both the nodes and the relationships.
98+
It is possible to supply more than one data frame, both for nodes and relationships.
9999
If multiple node dataframes are used, they need to contain distinct node ids across all node data frames.
100100
The supported format for the node data frames is described in <<arrow-node-columns, Arrow node schema>> and the format for the relationship data frames is described in <<arrow-relationship-columns, Arrow relationship schema>>.
101101

0 commit comments

Comments
 (0)