BaseGraphUnit.cs

32 lines | 683 B Blame History Raw Download
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Graph.Simple.Enums;

namespace Graph.Simple.Entities.Base
{    
        public abstract class BaseGraphUnit
        {
            #region

            public ElementType Type { private set; get; }

            public int ID { private set; get; }
            public Graph Graph { private set; get; }


            #endregion
            
            protected BaseGraphUnit(ElementType type, Graph graph, int ID)
            {
                this.Type = type;
                this.Graph = graph;
                this.ID = ID;
            }
        }
    
}