Ejemplo n.º 1
0
 /// <summary>
 /// Builds a new Graphviz writer of the graph g using the Stream s.
 /// </summary>
 /// <param name="g">Graph to visit.</param>
 /// <param name="prefix"></param>
 /// <param name="path">Path where files are to be created</param>
 /// <param name="imageType">image output type</param>
 public GraphvizAlgorithm(
     IVertexAndEdgeListGraph g,
     String prefix,
     String path,
     GraphvizImageType imageType
     )
 {
     if (g == null)
     {
         throw new ArgumentNullException("g");
     }
     m_VisitedGraph = g;
     m_StringWriter = null;
     m_Dot          = new DotRenderer(prefix, path, imageType);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="g"></param>
 public GraphvizAlgorithm(IVertexAndEdgeListGraph g)
 {
     if (g == null)
         throw new ArgumentNullException("g");
     m_VisitedGraph = g;
     m_StringWriter = null;
     m_Dot = new DotRenderer();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Builds a new Graphviz writer of the graph g using the Stream s.
 /// </summary>
 /// <param name="g">Graph to visit.</param>
 /// <param name="prefix"></param>
 /// <param name="path">Path where files are to be created</param>
 /// <param name="imageType">image output type</param>
 public GraphvizAlgorithm(
     IVertexAndEdgeListGraph g,
     String prefix,
     String path,
     GraphvizImageType imageType
     )
 {
     if (g == null)
         throw new ArgumentNullException("g");
     m_VisitedGraph = g;
     m_StringWriter = null;
     m_Dot = new DotRenderer(prefix,path,imageType);
 }