Get all the edges for a vertex.
// Iterate all edges for vertex with id '0'for (const edge of edgesForVertex(graph, '0')) {} Copy
// Iterate all edges for vertex with id '0'for (const edge of edgesForVertex(graph, '0')) {}
If the vertex has no edges, no values are returned. If the vertex was not found in the graph, an error is thrown.
Throws an error if context was not found, if it's undefined or graph is invalid.
context
graph
Get all the edges for a vertex.
If the vertex has no edges, no values are returned. If the vertex was not found in the graph, an error is thrown.