Core
Graph analytics executor and data types.
Bundle
dataclass
¤
A collection of DataFrames and other data.
Can efficiently represent a knowledge graph (homogeneous or heterogeneous) or tabular data.
By convention, if it contains a single DataFrame, it is called df
.
If it contains a homogeneous graph, it is represented as two DataFrames called nodes
and
edges
.
ATTRIBUTE | DESCRIPTION |
---|---|
dfs |
Named DataFrames.
TYPE:
|
relations |
Metadata that describes the roles of each DataFrame. Can be empty, if the bundle is just one or more DataFrames.
TYPE:
|
other |
Other data, such as a trained model.
TYPE:
|
RelationDefinition
dataclass
¤
Defines a set of edges.
ATTRIBUTE | DESCRIPTION |
---|---|
df |
The name of the DataFrame that contains the edges.
TYPE:
|
source_column |
The column in the edge DataFrame that contains the source node ID.
TYPE:
|
target_column |
The column in the edge DataFrame that contains the target node ID.
TYPE:
|
source_table |
The name of the DataFrame that contains the source nodes.
TYPE:
|
target_table |
The name of the DataFrame that contains the target nodes.
TYPE:
|
source_key |
The column in the source table that contains the node ID.
TYPE:
|
target_key |
The column in the target table that contains the node ID.
TYPE:
|
name |
Descriptive name for the relation.
TYPE:
|
df_for_frontend
¤
Returns a DataFrame with values that are safe to send to the frontend.
disambiguate_edges
¤
disambiguate_edges(ws: Workspace)
If an input plug is connected to multiple edges, keep only the last edge.
nx_node_attribute_func
¤
Decorator for wrapping a function that adds a NetworkX node attribute.