Graph Algorithms
Graph Algorithms
WIP: These classes are currently actively being developed and are subject to change in both API and functionality over time.
- TBD: TBD
Graph Algorithms
Docs TBD
Build a NetworkX graph from a Proximity instance.
proximity_graph(prox, n_neighbors=5, min_edges=2, min_weight=0.8)
Build a NetworkX graph from a Proximity instance.
Nodes carry all columns of the proximity DataFrame; edges carry a weight
(similarity, or distance normalized to [0, 1] for distance-based backends).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
prox
|
Proximity
|
An instance of a Proximity class. |
required |
n_neighbors
|
int
|
Number of neighbors to retrieve per node (default: 5). |
5
|
min_edges
|
int
|
Minimum edges per node (default: 2). |
2
|
min_weight
|
float
|
Weight threshold for additional edges beyond min_edges (default: 0.8). |
0.8
|
Returns:
| Type | Description |
|---|---|
Graph
|
nx.Graph: The proximity graph. |
Source code in src/workbench/algorithms/graph/light/proximity_graph.py
Questions?

The SuperCowPowers team is happy to answer any questions you may have about AWS and Workbench. Please contact us at workbench@supercowpowers.com or on chat us up on Discord