GetTestNetwork3() public static méthode

Returns a test network suitable for testing the AggregateWindow method
public static GetTestNetwork3 ( ) : TemporalNetwork
Résultat TemporalNetwork
Exemple #1
0
        public void AbsoluteTimeTest()
        {
            TemporalNetwork test = ExampleData.GetTestNetwork3();

            // Default behavior is relative time
            test.ReduceToTwoPaths();

            Assert.IsTrue(test.TwoPathWeights.ContainsKey("a,c,e") && test.TwoPathWeights["a,c,e"] == 1);

            test = ExampleData.GetTestNetwork3();
            test.ReduceToTwoPaths(false, true);

            Assert.IsFalse(test.TwoPathWeights.ContainsKey("a,c,e"));
        }
Exemple #2
0
        public void AggregateTimeTest()
        {
            TemporalNetwork net = ExampleData.GetTestNetwork3();

            net.AggregateTime(3);
        }