예제 #1
0
        public void AddCategory(DirectedGraphCategory category)
        {
            var cats = new List <DirectedGraphCategory>(DirectedGraph.Categories);

            cats.Add(category);

            DirectedGraph.Categories = cats.ToArray();
        }
예제 #2
0
        public DirectedGraphCategory AddCategory(string id)
        {
            var cat = new DirectedGraphCategory()
            {
                Id = id
            };

            AddCategory(cat);

            return(cat);
        }