Esempio n. 1
0
        public static void SetDefaultEventHandlers( DirectedGraph graph )
        {
            graph.ClearEventHandlers();

            graph.OnAddEdge += new EventHandler<EdgesModifiedEventArgs>(graph.DirectedGraph_OnAddEdge);
            graph.OnRemoveEdge += new EventHandler<EdgesModifiedEventArgs>(graph.DirectedGraph_OnRemoveEdge);
        }
Esempio n. 2
0
        public override object Clone()
        {
            DirectedGraph d = new DirectedGraph();

            this.CopyTo(d);

            return d;
        }