private HashSet <GraphInfo> BuildPosition(HashSet <long> conIDs) { HashSet <GraphInfo> position = new HashSet <GraphInfo>(); foreach (long ID in conIDs) { GraphInfo contract; if (graphCache.GetGraphInfo(ID, out contract)) { position.Add(contract); } else { GraphBuilder builder = new GraphBuilder(graphCache); ExposureDataAdaptor expData = graphCache.GetExposure(ID); GraphType type = graphCache.GetSettings(ID).GraphType; IRITEindexMapper mapper = GetMapper(expData); contract = builder.MakeGraph(type, expData, mapper); graphCache.Add(ID, contract); position.Add(contract); } } return(position); }
private Graph GetGraph(GraphType type, ExposureDataAdaptor expData) { GraphBuilder builder = new GraphBuilder(GraphCache); return(builder.MakeGraph(type, expData)); }
private GraphInfo GetGraph(GraphType type, ExposureDataAdaptor expData, IRITEindexMapper mapper) { GraphBuilder builder = new GraphBuilder(GraphCache); return(builder.MakeGraph(type, expData, mapper)); }