onEdgeClick function has "node" parameter but type of the parameter is "Edge". It is more convenient to rename the parameter as "edge".