Exemplo n.º 1
0
        public void ReadSnapTest()
        {
            Graph g = GraphParser.ReadFileSNAP(@"D:\Documents\computing_science\scriptie\graphs\SNAP_test.txt", 1);

            Assert.AreEqual(6, g.Vertices().Count);
            string s = g.ToString();

            Assert.AreEqual("0 -->  1 2\n1 -->  2\n2 --> \n3 -->  4 5\n4 -->  5\n5 -->  0\n", s);
        }
Exemplo n.º 2
0
 private static Graph CreateFileGraph(string filename, string filetype, SCCDetector[] detectors, int threads)
 {
     return(filetype == "SNAP" ? GraphParser.ReadFileSNAP(filename, threads) : GraphParser.ReadFile(filename, threads));
 }
Exemplo n.º 3
0
 public void InvalidSnapTest()
 {
     Graph g = GraphParser.ReadFileSNAP(@"D:\Documents\computing_science\scriptie\graphs\invalid_SNAP_test.txt", 1);
 }