Exemplo n.º 1
0
        public void SignatureHeightTest()
        {
            SimpleGraph          g         = SimpleGraphFactory.MakeCuneane();
            SimpleGraphSignature signature = new SimpleGraphSignature(g);

            for (int h = 1; h < g.GetVertexCount(); h++)
            {
                for (int i = 0; i < g.GetVertexCount(); i++)
                {
                    string sig = signature.SignatureStringForVertex(i, h);
                    Console.Out.WriteLine(h + "\t" + i + "\t" + sig);
                }
            }
        }
Exemplo n.º 2
0
 public void Check4Regularity(SimpleGraph graph)
 {
     Console.Out.WriteLine(graph);
     for (int i = 0; i < graph.GetVertexCount(); i++)
     {
         Assert.AreEqual(4, graph.Degree(i), "failed for " + i);
     }
 }