modeci_mdf.mdf.Edge
- class modeci_mdf.mdf.Edge(id: str, sender: str, receiver: str, sender_port: str, receiver_port: str, parameters: Optional[Dict[str, Any]] = None, *, metadata: Optional[Dict[str, Any]] = None)[source]
Bases:
MdfBase
An
Edge
is an attribute of aGraph
that transmits computational results from a sender’sOutputPort
to a receiver’sInputPort
.- Variables:
id (str) – A unique string identifier for this edge.
sender (str) – The
id
of theNode
which is the source of the edge.receiver (str) – The
id
of theNode
which is the target of the edge.sender_port (str) – The id of the
OutputPort
on the senderNode
, whose value should be sent to thereceiver_port
receiver_port (str) – The id of the InputPort on the receiver
Node
parameters (Optional[Dict[str, Any]]) – Dictionary of parameters for the edge.
Method generated by attrs for class Edge.
Methods