addEdge
Adds an edge from one vertex to another.
Return
a new graph instance with the edge added
Parameters
from
the source vertex
to
the destination vertex
Adds an edge from one vertex to another.
a new graph instance with the edge added
the source vertex
the destination vertex