elasticai.creator.ir.core.core#

Module Contents#

Classes#

Node

NOTE: name and type are read only when accessed through their descriptor, i.e.

Edge

NOTE: src, dst are read only when accessed through their descriptors.

Functions#

API#

class elasticai.creator.ir.core.core.Node(name: str, data: dict[str, elasticai.creator.ir.base.Attribute])[source]#

Bases: elasticai.creator.ir.base.IrData

NOTE: name and type are read only when accessed through their descriptor, i.e.

n = Node(dict()) n.name = “x” # Error! read only x = n.name # Error! no key name in n.data n.data[‘name’] = “x” n.name # Ok! … ‘x’

Initialization

type: elasticai.creator.ir.base.ReadOnlyField[str, str]#

‘_read_only_str(…)’

__slots__#

(‘name’,)

class elasticai.creator.ir.core.core.Edge(src: str, dst: str, data: dict[str, elasticai.creator.ir.base.Attribute])[source]#

Bases: elasticai.creator.ir.base.IrData

NOTE: src, dst are read only when accessed through their descriptors.

Initialization

__slots__#

(‘src’, ‘dst’)

elasticai.creator.ir.core.core.node(name: str, type: str, attributes: dict[str, elasticai.creator.ir.base.Attribute] | None = None) elasticai.creator.ir.core.core.Node[source]#
elasticai.creator.ir.core.core.edge(src: str, dst: str, attributes: dict[str, elasticai.creator.ir.base.Attribute] | None = None) elasticai.creator.ir.core.core.Edge[source]#