コード例 #1
0
ファイル: DgmlWriter.cs プロジェクト: hebert26/NRules
        public DgmlWriter(SessionSnapshot snapshot)
        {
            _snapshot = snapshot;

            _idMap = snapshot.Nodes
                .Select((x, i) => new {Node = x, Index = i})
                .ToDictionary(x => x.Node, x => x.Index);
        }
コード例 #2
0
        public GraphWriter(SessionSnapshot snapshot)
        {
            _snapshot = snapshot;

            _idMap = snapshot.Nodes
                     .Select((x, i) => new { Node = x, Index = i })
                     .ToDictionary(x => x.Node, x => x.Index);
        }