public Prominency GetProminency() { if (this.prominency == null) { this.prominency = new Prominency(this); } return(this.prominency); }
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); } }
internal void ResetProminency() { this.prominency = null; }