5.2.11. xgt.Edge¶
- class xgt.Edge(*args, **kwargs)¶
Represents an edge from an edge frame providing access to the properties and the frame the edge belongs to.
The user shouldn’t manually construct these. They will be constructed by calls to get_data().
The class is implemented as a dictionary with the following keys:
‘id’: Row ID
‘metadata’: dict containing frame metadata:
‘name’: Edge frame name
‘source_name’: Source vertex frame name
‘target_name’: Target vertex frame name
‘source_key’: Source vertex key column name
‘target_key’: Target vertex key column name
‘properties’: dict mapping property names to values
Experimental: The API of this class may change in future releases.
Attributes
The frame the element belongs to.
The position of the element's row in its frame.
A dictionary of the properties of the element.
- property frame: TableFrame | VertexFrame | EdgeFrame¶
The frame the element belongs to.
- Type:
- property position: int¶
The position of the element’s row in its frame.
- Type:
int
- property properties: dict¶
A dictionary of the properties of the element. The keys are the property names.
- Type:
dict