I am having trouble accessing an edgelist of a vertex(which is another object of vertex linked to it). Any ideas how?
like for example i have
Edge.cs, Vertex.cs, DirecGraph.cs
In the DirectGraph.cs
IDictionary < String, Vertex> dic = new IDictionary< String, Vertex>(); .. ... // Then add a vertex type object in the dictionary Vertex newV; dic.Add(newV.getVertex(), Vertex);// this works //now to add another vertex to the dictionary i just need to call the above code
now if i create 2 vertices, a and b, i can set the b as an edgelist of a. (I can see this in the memory while in a debug mode and it works). But trying to print/access Vertex b as an edgelist of Vertex a is a pain. Any ideas how?