示例#1
0
 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]);
     }
 }
示例#2
0
 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];
     }
 }
示例#3
0
        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);
            }
        }