public IEnumerable FindGraphsOfType (System.Type type) { if (graphs == null) { yield break; } for (int i=0;i<graphs.Length;i++) { if (graphs[i] != null && graphs[i].GetType () == type) { yield return graphs[i]; } } }