Example #1
0
 public Prominency GetProminency()
 {
     if (this.prominency == null)
     {
         this.prominency = new Prominency(this);
     }
     return(this.prominency);
 }
Example #2
0
        public bool AddAdjacent(Vertex adjacent, Edge edge)
        {
            if (ASSERT)
            {
                System.Diagnostics.Debug.Assert(!this.adjacents.ContainsKey(adjacent), "Edge duplicity...");
                System.Diagnostics.Debug.Assert(this != adjacent, "Self-loop...");
            }
            if (!this.adjacents.ContainsKey(adjacent) && this != adjacent)
            {
                this.adjacents.Add(adjacent, edge);
                this.prominency = null;

                return(true);
            }
            else
            {
                return(false);
            }
        }
Example #3
0
 internal void ResetProminency()
 {
     this.prominency = null;
 }