Example #1
0
        public void Remove(SimGraph graph)
        {
            // Remove nodes
            Remove(graph.Nodes);

            // Remove relations
            Remove(graph.Relations);
        }
Example #2
0
        /// <summary>
        /// Add content of the graph into the current graph
        /// </summary>
        /// <param name="graph">Graph to be added to the current graph</param>
        public void Add(SimGraph graph)
        {
            // Add nodes
            Add(graph.Nodes);

            // Add relations
            Add(graph.Relations);
        }
Example #3
0
        /// <summary>
        /// Updates corresponding entites from passed in graph on the current graph
        /// </summary>
        /// <param name="graph"></param>
        public void Update(SimGraph graph)
        {
            // Update nodes
            Update(graph.Nodes);

            // Update relations
            Update(graph.Relations);
        }