Version: dev

graph_edge

Stable type · Graphs

Tier: stable · Kind: type · Topic: Graphs

JuliaTypeScriptPythonRustGo
not exportednot exportedGraphEdgenot exportedGraphEdge

Julia

Julia does not export this type.

TypeScript

TypeScript does not export this type.

Python

class GraphEdge(Generic[E])
GraphEdge(source: str, target: str, data: E)

One directed edge: node keys plus the edge payload.

Mirrors the {source, target, data} triple TypeScript, Go and Julia all use. source / target are node KEYS (a ComponentNode ’s id, a VariableNode ’s name), not the node objects.

Source

Rust

Rust does not export this type.

Go

type GraphEdge[N any, E any] struct {
	Source N `json:"source"`
	Target N `json:"target"`
	Data   E `json:"data"`
}

GraphEdge represents an edge in a directed graph

Source · Go docs