Esempio n. 1
0
        /// <summary>
        /// Removes a Graph Node from the Graph
        /// </summary>
        /// <param name="graphnode">
        /// A <see cref="GraphNode"/>
        /// </param>
        /// <returns>
        /// A <see cref="System.Boolean"/>
        /// </returns>
        public bool RemoveGraphNode(GraphNode graphnode)
        {
            bool result = false;

            if (this.GraphNodes.Contains (graphnode))
            {
                this.GraphNodes.Remove (graphnode);
                result = true;
            }
            return result;
        }
Esempio n. 2
0
 /// <summary>
 /// Adds a Graph Node to the graph.
 /// </summary>
 /// <param name="graphnode">
 /// A <see cref="GraphNode"/>
 /// </param>
 /// <returns>
 /// A <see cref="System.Boolean"/>
 /// </returns>
 public bool AddGraphNode(GraphNode graphnode)
 {
     bool result = true;
     this.GraphNodes.Add(graphnode);
     return result;
 }