コード例 #1
0
ファイル: UGraph.cs プロジェクト: jasaleja/SDD_projekat
 public void PlotRefresh(IDictionary <TVertex, VertexColor> colors = null)
 {
     if (graphPlot != null)
     {
         graphPlot.Refresh(colors);
     }
     else
     {
         PlotGraph(colors);
     }
 }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
ファイル: UGraph.cs プロジェクト: jasaleja/SDD_projekat
 /// <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);
 }