import { ValuedGraphElement } from "https://deno.land/x/rimbu@1.0.3/graph/custom/index.ts";
const { getLinkElement } = ValuedGraphElement;
Returns the element at the given key
in the graph element e
,
if the element is a Link element, or returns the given otherwise
value
otherwise.
Parameters
e: ValuedGraphElement<N, V>
- the graph element
key: K
- the link key
Returns
ValuedLink<N, V>[K] | undefined