static void InitFastChange(FastChange fc) { for (int i = 0; i < (int)Constant.tassi.LAST_VALUE; i++) { string[] entry = ((Constant.tassi)i).ToString().Split('_'); fc.addString(entry[0]); fc.addString(entry[1]); } }
public static void TestGraph2() { FastChange fc = new FastChange(); for (int i = 0; i < (int)Constant.tassi.LAST_VALUE; i++) { string[] entry = ((Constant.tassi)i).ToString().Split('_'); fc.addString(entry[0]); fc.addString(entry[1]); } Digraph d = new Digraph(fc.numberOfItems); for (int i = 0; i < (int)Constant.tassi.LAST_VALUE; i++) { string[] entry = ((Constant.tassi)i).ToString().Split('_'); d.addEdge(entry[0], entry[1]); d.addEdge(entry[1], entry[0]); } }