internal void ConvertColumnToMap(DataTable table, int srcColIndex, INetworkAdjList network, IEdgeIntMap map) { int ctr = 0; foreach (IEdge edge in network.EdgeEnumerator) { map[edge] = System.Convert.ToInt32(table.Rows[ctr++][srcColIndex]); } }
internal void CopyColumnToMap(DataTable table, int srcColIndex, INetworkAdjList network, IEdgeIntMap map) { int ctr = 0; foreach (IEdge edge in network.EdgeEnumerator) { map[edge] = (int)table.Rows[ctr++][srcColIndex]; } }
public void CopyMapToFrame(INetworkAdjList network, IEdgeIntMap map, IFrame frame) { int[] vals = new int[network.EdgeCount]; int ctr = 0; foreach (IEdge edge in network.EdgeEnumerator) { vals[ctr++] = map[edge]; } SimpleFrame sFrame = frame as SimpleFrame; using (SimpleFrameTool tool = new SimpleFrameTool()) { tool.AddColumn<int>(sFrame, map.Name, vals); } }