public System.Type GetGraphType (string type) { for (int i=0;i<graphTypes.Length;i++) { if (graphTypes[i].Name == type) { return graphTypes[i]; } } return null; }