Make a connection between two vertices with a given weight. It returns the new graph as wll as the created edge.
Optional
Make a connection between two vertices with a given weight. It returns the new graph as wll as the created edge.