Is anyone else getting null values when running SimpleGraphTest?
I have not added any code to the remove methods into SimpleGraph1. I just ran the test and the edges return as (null : null). Yet when SimpleGraph1 prints out it shows edges. I have included a snippet of my results followed by the full output. Are we suppose to modify addEdge?
J X 1
edge = (null : null), source = J, target = X
class org.jgrapht.graph.SimpleGraph: ([A, B, X, Y, Z, C, J], [{A,B}, {B,X}, {X,Y}, {Y,Z}, {C,J}, {A,C}, {J,X}])
class cs310.SimpleGraph1: ([A, B, C, Y, X, J, Z], [{A,C}, {C,J}, {M,X}, {B,X}, {J,X}, {Y,Z}, {X,Y}, {A,B}])
vertex sets match
edge sets differ
A B 1
edge = (A : B), source = A, target = B
B X 2
edge = (B : X), source = B, target = X
X Y 2
edge = (X : Y), source = X, target = Y
Y Z 1
edge = (Y : Z), source = Y, target = Z
C J 3
edge = (C : J), source = C, target = J
A C 2
edge = (A : C), source = A, target = C
J X 1
edge = (J : X), source = J, target = X
M X 2
edge = (M : X), source = M, target = X
Graph: ([A, B, X, Y, Z, C, J, M], [{A,B}, {B,X}, {X,Y}, {Y,Z}, {C,J}, {A,C}, {J,X}, {M,X}])
A B 1
edge = (null : null), source = A, target = B
B X 2
edge = (null : null), source = B, target = X
X Y 2
edge = (null : null), source = X, target = Y
Y Z 1
edge = (null : null), source = Y, target = Z
C J 3
edge = (null : null), source = C, target = J
A C 2
edge = (null : null), source = A, target = C
J X 1
edge = (null : null), source = J, target = X
M X 2
edge = (null : null), source = M, target = X
Graph: ([A, B, C, M, Y, X, J, Z], [{A,C}, {C,J}, {M,X}, {B,X}, {J,X}, {Y,Z}, {X,Y}, {A,B}])
class org.jgrapht.graph.SimpleGraph: ([A, B, X, Y, Z, C, J], [{A,B}, {B,X}, {X,Y}, {Y,Z}, {C,J}, {A,C}, {J,X}])
class cs310.SimpleGraph1: ([A, B, C, Y, X, J, Z], [{A,C}, {C,J}, {M,X}, {B,X}, {J,X}, {Y,Z}, {X,Y}, {A,B}])
vertex sets match
edge sets differ