modeci_mdf.mdf.Edge

class modeci_mdf.mdf.Edge(id: str, sender: str, receiver: str, sender_port: str, receiver_port: str, parameters: Dict[str, Any] | None = None, *, metadata: Dict[str, Any] | None = None)[source]

Bases: MdfBase

An Edge is an attribute of a Graph that transmits computational results from a sender’s OutputPort to a receiver’s InputPort.

Variables:
  • id (str) – A unique string identifier for this edge.

  • sender (str) – The id of the Node which is the source of the edge.

  • receiver (str) – The id of the Node which is the target of the edge.

  • sender_port (str) – The id of the OutputPort on the sender Node, whose value should be sent to the receiver_port

  • receiver_port (str) – The id of the InputPort on the receiver Node

  • parameters (Dict[str, Any] | None) – Dictionary of parameters for the edge.

Method generated by attrs for class Edge.

Methods