public void CopyColumnToMap(DataTable table, int srcColIndex, INetworkAdjList network, IEdgeBoolMap map) { int ctr = 0; foreach (IEdge edge in network.EdgeEnumerator) { map[edge] = (bool)table.Rows[ctr++][srcColIndex]; } }
public void CopyMapToFrame(INetworkAdjList network, IEdgeBoolMap map, IFrame frame) { bool[] vals = new bool[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<bool>(sFrame, map.Name, vals); } }