A reader asked us the following question:
Hi, I had a question, If we don’t assume the edges to be of unit 1, then do we store it’s value in the DLL as below?
public class Node { public T nextVertex; public int edgeValue; public Node nextNode; public Node prevNode; }