public void PlotRefresh(IDictionary <TVertex, VertexColor> colors = null) { if (graphPlot != null) { graphPlot.Refresh(colors); } else { PlotGraph(colors); } }
/// <summary> /// Za prikazivanje sadrzaja nod-a se poziva /// odgovarajuca implementacija metode ToString() /// u klasi V. /// </summary> public void PlotGraph(IDictionary <TVertex, VertexColor> colors = null, Func <TVertex, string> vertexDesc = null, Func <TEdge, string> edgeDesc = null, params KeyValuePair <string, string>[] graphvizAttributes) { graphPlot = new GraphPlot <TVertex, TEdge>(this, vertexDesc, edgeDesc); foreach (var attr in graphvizAttributes) { graphPlot.GraphForm.SetAttribute(attr); } graphPlot.Refresh(colors); }
/// <summary> /// Za prikazivanje sadrzaja nod-a se poziva /// odgovarajuca implementacija metode ToString() /// u klasi V. /// </summary> public void PlotGraph(IDictionary <TVertex, VertexColor> colors = null, Func <TVertex, string> vertexDesc = null) { graphPlot = new GraphPlot <TVertex, TEdge>(this); graphPlot.Refresh(colors); }