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
Visualize a graph using Graphistry's GPU-accelerated renderer.
56
56
57
57
Args:
58
+
graph_type (str, optional): Type of graph to visualize. Must be one of "graph" (two-way edges, default), "hypergraph" (many-to-many edges).
58
59
graph_data (dict): Dictionary describing the graph to visualize. Fields:
59
-
- data_format (str, required): Format of the input data. One of:
60
-
* "edge_list": Use with 'edges' (list of {source, target}) and optional 'nodes' (list of {id, ...})
61
-
* "pandas": Use with 'edges' (list of dicts), 'source' (str), 'destination' (str), and optional 'node_id' (str)
62
-
* "networkx": Use with 'edges' as a networkx.Graph object
63
-
- edges (list, required for edge_list/pandas): List of edges, each as a dict with at least 'source' and 'target' keys (e.g., [{"source": "A", "target": "B"}, ...])
64
-
- nodes (list, optional): List of nodes, each as a dict with at least 'id' key (e.g., [{"id": "A"}, ...])
65
-
- node_id (str, optional): Column name for node IDs (for pandas format)
66
-
- source (str, optional): Column name for edge source (for pandas format)
67
-
- destination (str, optional): Column name for edge destination (for pandas format)
60
+
- edges (list, required): List of edges, each as a dict with at least 'source' and 'target' keys (e.g., [{"source": "A", "target": "B"}, ...]) and any other columns you want to include in the edge table
61
+
- nodes (list, optional): List of nodes, each as a dict with at least 'id' key (e.g., [{"id": "A"}, ...]) and any other columns you want to include in the node table
62
+
- node_id (str, optional): Column name for node IDs, if nodes are provided, must be provided.
63
+
- source (str, optional): Column name for edge source (default: "source")
64
+
- destination (str, optional): Column name for edge destination (default: "target")
65
+
- columns (list, optional): List of column names for hypergraph edge table, use if graph_type is hypergraph.
68
66
- title (str, optional): Title for the visualization
69
67
- description (str, optional): Description for the visualization
0 commit comments