NebulaGraph Python Client 5.3.0
Loading...
Searching...
No Matches
EdgeModel Class Reference
+ Inheritance diagram for EdgeModel:
+ Collaboration diagram for EdgeModel:

Public Member Functions

Optional[int] get_src_element_id (self)
 
Optional[int] get_dst_element_id (self)
 
Optional[int] get_rank (self)
 
str get_type (cls)
 
str get_src_type (cls)
 
str get_dst_type (cls)
 
Sequence[str] get_labels (cls)
 
Mapping[str, Any] get_properties (self)
 
tuple[str, BasicTargetType] get_prop (self, str key)
 
List[str] get_multiedge_keys (cls)
 
Dict[str, BasicTargetType] get_multiedge_kv (self)
 
Self from_primitive (cls, EdgePrimitive data)
 
EdgeType to_type (cls)
 

Static Public Attributes

 model_config = ConfigDict(revalidate_instances="always")
 

Detailed Description

Definition at line 97 of file model.py.

Member Function Documentation

◆ from_primitive()

Self from_primitive (   cls,
EdgePrimitive  data 
)

Definition at line 135 of file model.py.

◆ get_dst_element_id()

Optional[int] get_dst_element_id (   self)

Definition at line 102 of file model.py.

◆ get_dst_type()

str get_dst_type (   cls)

Definition at line 117 of file model.py.

◆ get_labels()

Sequence[str] get_labels (   cls)

Definition at line 120 of file model.py.

◆ get_multiedge_keys()

List[str] get_multiedge_keys (   cls)

Definition at line 129 of file model.py.

+ Here is the caller graph for this function:

◆ get_multiedge_kv()

Dict[str, BasicTargetType] get_multiedge_kv (   self)

Definition at line 131 of file model.py.

◆ get_prop()

tuple[str, BasicTargetType] get_prop (   self,
str  key 
)

Definition at line 125 of file model.py.

+ Here is the caller graph for this function:

◆ get_properties()

Mapping[str, Any] get_properties (   self)

Definition at line 122 of file model.py.

+ Here is the caller graph for this function:

◆ get_rank()

Optional[int] get_rank (   self)
rank == 0 means not given by input,

rank == None means no multiedge key specified by the edge type

Definition at line 104 of file model.py.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_src_element_id()

Optional[int] get_src_element_id (   self)

Definition at line 100 of file model.py.

◆ get_src_type()

str get_src_type (   cls)

Definition at line 114 of file model.py.

◆ get_type()

str get_type (   cls)

Definition at line 111 of file model.py.

+ Here is the caller graph for this function:

◆ to_type()

EdgeType to_type (   cls)

Definition at line 138 of file model.py.

Member Data Documentation

◆ model_config

model_config = ConfigDict(revalidate_instances="always")
static

Definition at line 98 of file model.py.


The documentation for this class was generated from the following file: