public DgmlWriter(SessionSnapshot snapshot) { _snapshot = snapshot; _idMap = snapshot.Nodes .Select((x, i) => new {Node = x, Index = i}) .ToDictionary(x => x.Node, x => x.Index); }
public GraphWriter(SessionSnapshot snapshot) { _snapshot = snapshot; _idMap = snapshot.Nodes .Select((x, i) => new { Node = x, Index = i }) .ToDictionary(x => x.Node, x => x.Index); }