public void IsNeighbourOfNotConnectedNodeTest() { const string node = "1"; _weightedAdjacencyList.AddVertex(node); const string notConnectedNode = "2"; const int weight = 1; var notConnectedEdge = new WeightedAdjacencyList <string> .Node <string>(notConnectedNode, weight); var isNeigthbour = _weightedAdjacencyList.IsNeighbourOf(node, notConnectedEdge); Assert.IsFalse(isNeigthbour, "Two nodes that were connected are shown as connected"); }
protected void UnLoadInput() { _weightedAdjacencyList = new WeightedAdjacencyList <string>(); }