Mercurial > defical
view defical-sharp/libbacktrack/backtrack.cs @ 1:758381a85d76 default tip
Incorrect printf format.
author | Edho Prima Arief <me@myconan.net> |
---|---|
date | Mon, 28 Jun 2010 14:52:19 +0700 |
parents | ebed2bd0d300 |
children |
line wrap: on
line source
using System; using System.Collections.Generic; using System.Linq; using System.Text; using libsemtd; namespace libbacktrack { public partial class Backtrack { public Backtrack() { throw new NotImplementedException(); } public Backtrack(string graphType, int numVerMain, int numVerDef, int firstLabel, bool isRecurseAll) { this.result = ""; this.myGraph = new Semtd(graphType, numVerMain, numVerDef); this.labelVerUsed = new bool[this.myGraph.NumVerTotal + 1]; this.isRecurseAll = isRecurseAll; setLabel(0, firstLabel); this.firstLabel = firstLabel; this.pathLabel = this.pathStart = this.pathEnd = 0; switch (graphType) { case "fan": { this.pathStart = 1; this.pathEnd = this.myGraph.NumVerMain - 1; break; } case "wheel": case "doubefan": { this.pathStart = 2; this.pathEnd = this.myGraph.NumVerMain - 1; break; } } } } }