public void testSetEdgeDataBothNull() { AdjacencyListGraph <string, string> g = graph(n1, n2); g.AddEdge(e1); g.ReplaceEdge <string, string, string>(null, null); }
public void testSetEdgeDataDuplicate() { AdjacencyListGraph <string, string> g = graph(n1, n2, n3, n4); Edge <string, string> e1 = new Edge <string, string>(n1, n2, "one"); Edge <string, string> e2 = new Edge <string, string>(n1, n2, "two"); g.AddEdge(e1); g.AddEdge(e2); g.ReplaceEdge(e1, "two"); }
public void testSetEdgeDataNull() { AdjacencyListGraph <object, string> g = new AdjacencyListGraph <object, string>(); g.AddNode(n1); g.AddNode(n2); g.AddEdge(e1); g.ReplaceEdge <object, string, string>(null, ""); }
public void testSetEdgeDataNoDuplicate() { AdjacencyListGraph <string, string> g = graph(n1, n2); g.AddEdge(e1); g.ReplaceEdge(e1, "new"); Assert.IsFalse(g.ContainsEdge(e1)); Assert.IsTrue(g.ContainsEdge(new Edge <string, string>(e1.Source, e1.Destination, "new"))); }
public void testSetEdgeDataNoEdge() { AdjacencyListGraph <string, string> g = graph(); g.ReplaceEdge(e1, "new_data"); }