public void AddCategory(DirectedGraphCategory category) { var cats = new List <DirectedGraphCategory>(DirectedGraph.Categories); cats.Add(category); DirectedGraph.Categories = cats.ToArray(); }
public DirectedGraphCategory AddCategory(string id) { var cat = new DirectedGraphCategory() { Id = id }; AddCategory(cat); return(cat); }