Version: dev

coupling_edge

Stable type · Graphs

Tier: stable · Kind: type · Topic: Graphs

JuliaTypeScriptPythonRustGo
CouplingEdgeCouplingEdgeCouplingEdgeCouplingEdgeCouplingEdge

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.

Source

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 edge
  • from — Source component ID
  • to — Target component ID
  • type — Type of coupling
  • label — Display label for the edge
  • description — Optional description
  • coupling — Full coupling entry for editing

Source

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.

Source

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

Source · Rust docs

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

Source · Go docs