A custom hook that adds a link to the graph.
A function that adds the link to the graph.
const addLink = useCreateLink();addLink({ id: '1', source: { id: '2' }, target: { id: '3' } }); Copy
const addLink = useCreateLink();addLink({ id: '1', source: { id: '2' }, target: { id: '3' } });
A custom hook that adds a link to the graph.