示例#1
0
        public static RootGraph FromDotString(string graph)
        {
            IntPtr ptr    = Imagmemread(graph);
            var    result = new RootGraph(ptr);

            result.UpdateMemoryPressure();
            return(result);
        }
示例#2
0
        /// <summary>
        /// Create a deepcopy of the graph as a new root graph.
        /// All nodes, edges and subgraphs contained in self are copied.
        ///
        /// No side effects to self.
        /// </summary>
        /// <returns></returns>
        public RootGraph Clone(string resultname)
        {
            RootGraph result = RootGraph.CreateNew(resultname, GetGraphType());

            CopyAttributesTo(result);
            CloneInto(result);
            result.UpdateMemoryPressure();
            return(result);
        }