示例#1
0
文件: GraphModel.cs 项目: lukaspj/CGF
        public GraphModel(IDependencyParserStrategy dps, ISerializationStrategy iss, string file)
        {
            mDependencyParserStrategy = dps;
            mSerializationStrategy    = iss;

            _nodeIdentifierDict        = new Dictionary <Node, int>();
            _nodeIdentifierReverseDict = new Dictionary <int, Node>();
            _nodeConnections           = new List <NodeConnection>();

            iss.DeserializeFile(file, ref _nodeIdentifierDict, ref _nodeIdentifierReverseDict, ref _nodeConnections);
        }
示例#2
0
        public GraphModel(IDependencyParserStrategy dps, ISerializationStrategy iss, string file)
        {
            mDependencyParserStrategy = dps;
             mSerializationStrategy = iss;

             _nodeIdentifierDict = new Dictionary<Node, int>();
             _nodeIdentifierReverseDict = new Dictionary<int, Node>();
             _nodeConnections = new List<NodeConnection>();

             iss.DeserializeFile(file, ref _nodeIdentifierDict, ref _nodeIdentifierReverseDict, ref _nodeConnections);
        }
 public List <FormatFileGenerator.Format> ExecuteDeserialization(string filepath) =>
 strategy.DeserializeFile(filepath);