import { ValuedGraphElement } from "https://deno.land/x/rimbu@0.13.5/graph/custom/common/valued-link.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