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

            cats.Add(category);

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

            AddCategory(cat);

            return(cat);
        }