Exemple #1
0
        public DgmlWriter(SessionSnapshot snapshot)
        {
            _snapshot = snapshot;

            _idMap = snapshot.Nodes
                .Select((x, i) => new {Node = x, Index = i})
                .ToDictionary(x => x.Node, x => x.Index);
        }
Exemple #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);
        }