add graph routines for generating network instances