DirectedGraph<N, E>Immutable graph type for source-to-target relationships.
When to use
Use as the immutable graph type when edge direction is part of the model and traversal or neighbor queries should follow source-to-target edges.
Details
DirectedGraph<N, E> is a Graph<N, E, "directed"> with node data of type
N and edge data of type E.
export type type DirectedGraph<N, E> = Graph<
N,
E,
"directed"
>
Immutable graph type for source-to-target relationships.
When to use
Use as the immutable graph type when edge direction is part of the model and
traversal or neighbor queries should follow source-to-target edges.
Details
DirectedGraph<N, E> is a Graph<N, E, "directed"> with node data of type
N and edge data of type E.
DirectedGraph<function (type parameter) N in type DirectedGraph<N, E>N, function (type parameter) E in type DirectedGraph<N, E>E> = interface Graph<out N, out E, T extends Kind = "directed">Immutable graph interface.
When to use
Use as the immutable graph model for code that queries, traverses,
transforms, or analyzes graph structure without mutating it.
Graph<function (type parameter) N in type DirectedGraph<N, E>N, function (type parameter) E in type DirectedGraph<N, E>E, "directed">