5.2.10. xgt.Vertex¶
- class xgt.Vertex(mapping=None, *, container_map=None, validation_id=0)¶
Represents a vertex from a vertex frame providing access to the properties and the frame the vertex 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’: Vertex frame name
‘key’: 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.
- property position: int¶
The position of the element’s row in its frame.
- property properties: dict[str, Any]¶
A dictionary of the properties of the element. The keys are the property names.