src/model_mapping.c
// Multiple LP Types mapping function
//    Given an LP's GID
//    Return the index in the LP type array (defined in model_main.c)
Multiple LP Types mapping function
Given an LP's GID
Return the index in the LP type array (defined in model_main.c)
Multiple LP Types mapping function Given an LP ' s GID Return the index in the LP type array ( defined in model_main . c )
tw_lpid model_typemap (tw_lpid gid) {
    if (gid < g_num_stations) {
        return STATION;
    }
    else {
        return TRANSIT_UNIT;
    }
}
tw_lpid model_typemap ( tw_lpid gid ) { if ( gid < g_num_stations ) { return STATION ; } else { return TRANSIT_UNIT ; } }
Multiple LP Types mapping function
Given an LP's GID
Return the index in the LP type array (defined in model_main.c)
Multiple LP Types mapping function Given an LP ' s GID Return the index in the LP type array ( defined in model_main . c )
// the girst g_num_stations are stations and the remaining are transit_units