public NavGraph CreateGraph (System.Type type) { NavGraph g = System.Activator.CreateInstance (type) as NavGraph; g.active = active; return g; }