You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: changelog.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@
8
8
9
9
## New features
10
10
11
+
* Allow passing a `neo4j.Driver` instance as input to `from_neo4j`, in which case the driver will be used internally to fetch the graph data using a simple query
Copy file name to clipboardExpand all lines: docs/source/integration.rst
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -184,13 +184,16 @@ Once you have installed the additional dependency, you can use the :doc:`from_ne
184
184
to import query results from Neo4j.
185
185
186
186
The ``from_neo4j`` method takes one mandatory positional parameter:
187
-
188
-
* A ``result`` representing the query result either in form of `neo4j.graph.Graph` or `neo4j.Result`.
187
+
A ``data`` argument representing either a query result in the shape of a ``neo4j.graph.Graph`` or ``neo4j.Result``, or a
188
+
``neo4j.Driver`` in which case a simple default query will be executed internally to retrieve the graph data.
189
189
190
190
We can also provide an optional ``size_property`` parameter, which should refer to a node property,
191
191
and will be used to determine the sizes of the nodes in the visualization.
192
192
193
-
The ``node_caption`` and ``relationship_caption`` parameters are also optional, and indicate the node and relationship properties to use for the captions of each element in the visualization.
193
+
The ``node_caption`` and ``relationship_caption`` parameters are also optional, and indicate the node and relationship
194
+
properties to use for the captions of each element in the visualization.
195
+
By default, the captions will be set to the node labels relationship types, but you can specify any property that
196
+
exists on these entities.
194
197
195
198
The last optional property, ``node_radius_min_max``, can be used (and is used by default) to scale the node sizes for
0 commit comments