coupling_edge
Stable type · Graphs
Tier: stable · Kind: type · Topic: Graphs
| Julia | TypeScript | Python | Rust | Go |
|---|---|---|---|---|
CouplingEdge | CouplingEdge | CouplingEdge | CouplingEdge | CouplingEdge |
Julia
struct CouplingEdge
CouplingEdge(id::String, from::String, to::String, type::String, label::String, description::Union{Nothing, String}, coupling::CouplingEntry)
CouplingEdge(id, from, to, type, label, description, coupling)
Edge representing coupling between components.
TypeScript
interface CouplingEdge {
id: string;
from: string;
to: string;
type: CouplingEntry['type'];
label: string;
description?: string;
coupling: CouplingEntry;
}
Graph edge representing a coupling relationship
Properties
id— Unique identifier for this edgefrom— Source component IDto— Target component IDtype— Type of couplinglabel— Display label for the edgedescription— Optional descriptioncoupling— Full coupling entry for editing
Python
class CouplingEdge
CouplingEdge(id: str, from_component: str, to_component: str, type: str, label: str, description: str | None = None, coupling: Any = None)
A coupling relationship between two components.
from_component / to_component spell the wire keys from / to,
which are Python keywords; the package already uses this convention for
VariableMapCoupling’s from_var /
to_var. to_json
emits them under the wire spellings.
Rust
pub struct CouplingEdge {
pub from: String,
pub to: String,
pub coupling_type: CouplingEdgeKind,
pub label: String,
pub data: Value,
}
Edge in the component graph
Go
type CouplingEdge struct {
Type CouplingKind `json:"type"` // coupling type
Label *string `json:"label,omitempty"`
Description *string `json:"description,omitempty"`
Bidirectional bool `json:"bidirectional"`
CouplingEntry any `json:"coupling_entry"`
}
CouplingEdge represents an edge in the component graph