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
+1-5Lines changed: 1 addition & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,9 @@
4
4
5
5
- Do not automatically derive size and caption for `from_neo4j` and `from_gql_create`. Use the `size_property` and `node_caption` parameters to explicitly configure them.
6
6
- Change API of integrations to only provide basic parameters. Any further configuration should happen ons the Visualization Graph object:
7
-
-`from_gds`
8
-
- Drop parameters `size_property`, `node_radius_min_max`. Use `VG.resize_nodes(property=...)` instead
9
-
- rename additional_node_properties to node_properties
10
-
- Don't derive fields from properties. Use `VG.map_properties_to_fields` instead
11
7
-`from_pandas`
12
8
- Drop `node_radius_min_max` parameter. `VG.resize_nodes(...)` instead
13
-
-`from_gql_create`
9
+
-`from_neo4j`, `from_gds`, `from_gql_create`
14
10
- Drop parameters `size_property`, `node_radius_min_max`. Use `VG.resize_nodes(property=...)` instead
15
11
- rename additional_node_properties to node_properties
16
12
- Don't derive fields from properties. Use `VG.map_properties_to_fields` instead
Copy file name to clipboardExpand all lines: docs/source/integration.rst
+6-44Lines changed: 6 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -164,22 +164,9 @@ The ``from_neo4j`` method takes one mandatory positional parameter:
164
164
A ``data`` argument representing either a query result in the shape of a ``neo4j.graph.Graph`` or ``neo4j.Result``, or a
165
165
``neo4j.Driver`` in which case a simple default query will be executed internally to retrieve the graph data.
166
166
167
-
We can also provide an optional ``size_property`` parameter, which should refer to a node property,
168
-
and will be used to determine the sizes of the nodes in the visualization.
169
-
170
-
The ``node_caption`` and ``relationship_caption`` parameters are also optional, and indicate the node and relationship
171
-
properties to use for the captions of each element in the visualization.
172
-
By default, the captions will be set to the node labels relationship types, but you can specify any property that
173
-
exists on these entities.
174
-
175
-
The last optional property, ``node_radius_min_max``, can be used (and is used by default) to scale the node sizes for
176
-
the visualization.
177
-
It is a tuple of two numbers, representing the radii (sizes) in pixels of the smallest and largest nodes respectively in
178
-
the visualization.
179
-
The node sizes will be scaled such that the smallest node will have the size of the first value, and the largest node
180
-
will have the size of the second value.
181
-
The other nodes will be scaled linearly between these two values according to their relative size.
182
-
This can be useful if node sizes vary a lot, or are all very small or very big.
167
+
The optional ``max_rows`` parameter can be used to limit the number of relationships shown in the visualization.
168
+
By default, it is set to 10.000, meaning that if the database has more than 10.000 rows, a warning will be raised.
169
+
Note, this only applies if the ``data`` parameter is a ``neo4j.Driver``.
183
170
184
171
185
172
Example
@@ -269,39 +256,14 @@ The ``from_snowflake`` method takes two mandatory positional parameters:
269
256
* A `project configuration <https://neo4j.com/docs/snowflake-graph-analytics/current/jobs/#jobs-project>`_ as a dictionary, that specifies how you want your tables to be projected as a graph.
270
257
This configuration is the same as the project configuration of the `Neo4j Snowflake Graph Analytics application <https://neo4j.com/docs/snowflake-graph-analytics/current/>`_.
271
258
272
-
``from_snowflake`` also takes an optional property, ``node_radius_min_max``, that can be used (and is used by default) to
273
-
scale the node sizes for the visualization.
274
-
It is a tuple of two numbers, representing the radii (sizes) in pixels of the smallest and largest nodes respectively in
275
-
the visualization.
276
-
The node sizes will be scaled such that the smallest node will have the size of the first value, and the largest node
277
-
will have the size of the second value.
278
-
The other nodes will be scaled linearly between these two values according to their relative size.
279
-
This can be useful if node sizes vary a lot, or are all very small or very big.
280
-
281
-
282
-
Special columns
283
-
~~~~~~~~~~~~~~~
284
-
285
-
It is possible to modify the visualization directly by including columns of certain specific names in the node and relationship tables.
286
-
287
-
All such special columns can be found :doc:`here <./api-reference/node>` for nodes and :doc:`here <./api-reference/relationship>` for relationships.
288
-
Though listed in ``snake_case`` here, ``SCREAMING_SNAKE_CASE`` and ``camelCase`` are also supported.
289
-
Some of the most commonly used special columns are:
290
-
291
-
* **Node sizes**: The sizes of nodes can be controlled by including a column named "SIZE" in node tables.
292
-
The values in these columns should be of a numeric type. This can be useful for visualizing the relative importance or size of nodes in the graph, for example using a computed centrality score.
293
-
294
-
* **Captions**: The caption text of nodes and relationships can be controlled by including a column named "CAPTION" in the tables.
295
-
The values in these columns should be of a string type. This can be useful for displaying additional information about the nodes, such as their names or labels. If no "CAPTION" column is provided, the default captions in the visualization will be the names of the corresponding node and relationship tables.
296
-
297
-
Please also note that you can further customize the visualization after the `VisualizationGraph` has been created, by using the methods described in the :doc:`Customizing the visualization <./customizing>` section.
259
+
You can further customize the visualization after the `VisualizationGraph` has been created, by using the methods described in the :doc:`Customizing the visualization <./customizing>` section.
298
260
299
261
300
262
Default behavior
301
263
~~~~~~~~~~~~~~~~
302
264
303
-
Unless there are "CAPTION" columns in the tables, the node and relationship captions will be set to the names of the corresponding tables.
304
-
Similarly, if there are are no "COLOR" node table columns, the nodes will be colored be colored so that nodes from the same table have the same color, and different tables have different colors.
265
+
The node and relationship captions will be set to the names of the corresponding tables.
266
+
The nodes will be colored so that nodes from the same table have the same color, and different tables have different colors.
0 commit comments