Graph Representation using Linked-List
问题 Im having some trouble trying to figure out how to get the pointers right when adding edges to a certain paired vertex. Below is a short idea about how the linked list should look like after Vertexs and Nodes are done being Inputed. How can i keep order on the neighborList as well? Should there be another condition if there is already a vertex edge in that current vertex? Heres the Structured Class im trying to build: class graph{ private: typedef struct node{ char vertex; node * nodeListPtr;