added method to generate a capacity network