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: demos/more_examples/graphistry_features/collections.ipynb
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,14 +6,21 @@
6
6
"source": [
7
7
"# Collections in PyGraphistry\n",
8
8
"\n",
9
-
"Define collections (subsets) using GFQL AST helpers and apply visual encodings."
9
+
"Collections define labeled subsets of a graph (nodes, edges, or subgraphs) using full GFQL. They enable advanced, layered styling that overrides base encodings when you need precise highlights.\n",
10
+
"\n",
11
+
"Use collections when you want:\n",
12
+
"- baseline encodings (for example, by entity type) plus overlays for alerts or critical paths\n",
13
+
"- multiple overlapping highlights with a priority order\n",
14
+
"- a UI panel for toggling focused subsets on and off\n",
15
+
"\n",
16
+
"Collections are evaluated in priority order, with higher priority collections overriding lower ones for styling.\n"
10
17
]
11
18
},
12
19
{
13
20
"cell_type": "markdown",
14
21
"metadata": {},
15
22
"source": [
16
-
"Collections use GFQL operations (like `graphistry.n(...)`) to define sets, and can be combined using intersections."
23
+
"In this notebook, we build sets using GFQL AST helpers, combine them with intersections, and apply node and edge colors. Collections can be based on nodes, edges, or multi-step graph traversals (Chain).\n"
Copy file name to clipboardExpand all lines: docs/source/gfql/spec/wire_protocol.md
+44Lines changed: 44 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -376,6 +376,50 @@ null // null
376
376
377
377
**Note**: The `timezone` field is optional for DateTime values and defaults to "UTC" if omitted. This ensures consistent behavior across systems while allowing explicit timezone specification when needed.
378
378
379
+
## Collections Payloads
380
+
381
+
Collections are Graphistry visualization overlays that use GFQL wire protocol operations to define subsets
382
+
of nodes, edges, or subgraphs. They are applied in priority order, with earlier collections overriding later
383
+
ones for styling.
384
+
385
+
### Collection Set
386
+
387
+
Collection sets wrap GFQL operations in a `gfql_chain` object:
Copy file name to clipboardExpand all lines: docs/source/visualization/index.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ Visualize
2
2
=============
3
3
4
4
We recommend getting started with :ref:`10 Minutes to PyGraphistry <10min>`, :ref:`10 Minutes to Graphistry Visualization<10min-viz>`, and the :ref:`layout guide <layout-guide>`.
5
-
For advanced, subset-based coloring, see :ref:`Layout settings <layout-settings>` and the
For static image export (documentation, reports), see the `static rendering tutorial <../demos/demos_databases_apis/graphviz/static_rendering.ipynb>`_.
0 commit comments