Beispiel #1
0
    void ReadEdge(string path)
    {
        string wholePath = "";

        if (path == "")
        {
            readFrom  = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
            wholePath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "/" + fileName + extension;
        }
        else
        {
            wholePath = readFrom + "/" + fileName + extension;
        }
        edgeList = EdgeRawData.ReadFile(wholePath);

        // while (sr.Peek() >= 0)
        // {
        //     edgeList.Add(JsonUtility.FromJson<Edge>(sr.ReadLine()));
        // }
    }
 static void Optimize(EdgeRawData rawData)
 {
 }
 void InitGraphBuilder()
 {
     rawData           = edgeReader.edgeList;
     simplifyModelData = new SimplifyModelData(rawData);
 }