Exemple #1
0
        /// <summary>
        /// Adds an SGLNode to the list of associated SGLNodes using a direction.
        /// </summary>
        /// <param name="SGLNode"></param>
        public void AddNode(SGLNode <T> SGLNode, bool isDirected)
        {
            SGLEdge <T> edge = new SGLEdge <T>(this, SGLNode, isDirected);

            AdjacencyList.Add(edge);
        }
Exemple #2
0
        /// <summary>
        /// Adds an SGLNode to the list of associated SGLNodes.
        /// </summary>
        /// <param name="SGLNode"></param>
        public void AddNode(SGLNode <T> SGLNode)
        {
            SGLEdge <T> edge = new SGLEdge <T>(this, SGLNode);

            AdjacencyList.Add(edge);
        }