Пример #1
0
        public override string SignatureStringForVertex(int vertexIndex, int height)
        {
            EdgeColoredVertexSignature vertexSignature =
                new EdgeColoredVertexSignature(vertexIndex, height, this.graph, this.colorMap);

            return(vertexSignature.ToCanonicalString());
        }
Пример #2
0
        public override string SignatureStringForVertex(int vertexIndex)
        {
            EdgeColoredVertexSignature vertexSignature;
            int height = base.Height;

            if (height == -1)
            {
                vertexSignature =
                    new EdgeColoredVertexSignature(vertexIndex, this.graph, this.colorMap);
            }
            else
            {
                vertexSignature =
                    new EdgeColoredVertexSignature(vertexIndex, height, this.graph, this.colorMap);
            }
            return(vertexSignature.ToCanonicalString());
        }