/// <summary> /// Sets the layout that will be used to render the graph /// </summary> /// <param name="layout">Layout engine name</param> protected void SetLayout(string layout) { if (GraphVizCore.gvLayout(GVContext, GVGraph, layout) != 0) { throw new ArgumentException("Error while setting layout to \"" + layout + "\""); } }