edges
Return
a list of the Edges in the graph, where the edges are triples with: fromNode, toNode, weight
Retrieves a list of edges connected to the specified node.
Each edge is represented as a pair, where the first element is the weight of the edge (as a Double), and the second element is the connected node.
Return
A list of pairs representing the edges connected to the node.
Parameters
node
The node whose edges are to be retrieved.
Throws
If the specified node is not found in the graph.