kumoai.graph.Edge#
- class kumoai.graph.Edge[source]#
Bases:
CastMixin
,Edge
An edge represents a relationship between two tables in a
Graph
. Note that edges are always bidirectional within the Kumo platform.- Parameters:
src_table (
str
) – The name of the source table of the edge. This table must have a foreign key with namefkey
that links to the primary key in the destination table.fkey (
str
) – The name of the foreign key in the source table.dst_table (
str
) – The name of the destination table in the graph. This table must have a primary key that links to the source table’s foreign key.
Example
>>> import kumoai >>> edge = kumoai.Edge("table_with_fkey", "fkey", "table_with_pkey")
- __init__(src_table, fkey, dst_table)#