public Graph(string path) { myNodeList = new Dictionary <string, INode>(); myEdgeList = new List <IEdge>(); myIohandler = new XMLStrategy(path); if (!File.Exists(path)) { ErrorCode err; SaveDataBase(out err); return; } GraphInit(); }
public Graph(string name, string dbPath, string assemblyPath) { Name = name; FilePath = dbPath; AssemblyPath = assemblyPath; myNodeList = new Dictionary <string, Node>(); myEdgeList = new List <Edge>(); myIohandler = new XMLStrategy(FilePath); myConfiguration = new Configuration(AssemblyPath); if (!File.Exists(FilePath)) { SaveDataBase(); return; } GraphInit(); }