Пример #1
0
        public GraphLabelledEntity RemoveLabel(Type type)
        {
            string label = TypeManager.GetLabel(type);

            ((List <string>)Labels).Remove(label);

            return(this);
        }
Пример #2
0
        public GraphLabelledEntity AddLabel(Type type)
        {
            string label = TypeManager.GetLabel(type);

            if (!((List <string>)Labels).Contains(label))
            {
                ((List <string>)Labels).Add(label);
            }

            return(this);
        }
Пример #3
0
        public virtual GraphEntity OfType(Type type)
        {
            EntityType = TypeManager.GetLabel(type);

            return(this);
        }