- replce parameter type from size_t to unsigned, so iredges.h does not depend