Version: dev

reference_vertex

Stable type · Graphs

Tier: stable · Kind: type · Topic: Graphs

JuliaTypeScriptPythonRustGo
ReferenceVertexReferenceVertexReferenceVertexReferenceVertexReferenceVertex

Julia

struct ReferenceVertex
ReferenceVertex(key::String, kind::String, name::String, op::Union{Nothing, String}, node_id::Union{Nothing, String}, path::Union{Nothing, String})
ReferenceVertex(key, kind, name, op, node_id, path)
ReferenceVertex

A vertex in the reference graph, addressed by a kind-namespaced key ("$kind:$name"). For a node vertex, name is the node’s stable address: its explicit id when present, else its structural path (e.g. equations/0/rhs/expr). op, node_id, and path are diagnostic metadata.

Source

TypeScript

interface ReferenceVertex {
    key: string;
    kind: VertexKind;
    name: string;
    op?: string;
    nodeId?: string;
    path?: string;
}

A vertex in the reference graph, addressed by a kind-namespaced key.

key is `${kind}:${name}`. For a node vertex, name is the node’s stable address: its explicit id when it has one, else its structural path (e.g. equations/0/rhs/expr).

Source

Python

class ReferenceVertex
ReferenceVertex(key: str, kind: str, name: str, op: str | None = None, node_id: str | None = None, path: str | None = None)

A vertex in the reference graph, addressed by a kind-namespaced key.

key is f"{kind}:{name}". For a NODE vertex name is the node’s stable address: its explicit id when it has one, else its structural path (e.g. equations/0/rhs/expr). node_id records the explicit id (if any), op the operator, and path the structural path, for diagnostics.

Source

Rust

pub struct ReferenceVertex {
    pub key: String,
    pub kind: VertexKind,
    pub name: String,
    pub op: Option<String>,
    pub node_id: Option<String>,
    pub path: Option<String>,
}

A vertex in the reference graph, addressed by a kind-namespaced key.

key is "{kind}:{name}". For a VertexKind::Node vertex name is the node’s stable address: its explicit id when present, else its structural path (e.g. equations/0/rhs/expr).

Source · Rust docs

Go

type ReferenceVertex struct {
	Key    string
	Kind   VertexKind
	Name   string
	Op     string
	NodeID string
	Path   string
}

ReferenceVertex is a vertex in the reference graph, addressed by a kind-namespaced Key.

Key is “<kind>:<name>”. For a VertexKindNode vertex, Name is the node’s STABLE ADDRESS: its explicit id when it has one, else its structural path (e.g. equations/0/rhs/expr). NodeID records the explicit id (empty when absent), Op the operator, and Path the structural path — all three for diagnostics.

Source · Go docs