Skip to content

kbialkowski/GraphVizWrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphVizWrapper

Wrapper for graphviz visualization engine (http://www.graphviz.org/)

CODE:

        Node nod1 = new Node("node_one");

        nod1.AddStyle("color", "red");

        Node nod2 = new Node("node_two");

        nod2.AddStyle("color", "blue");
        nod2.AddStyle("shape", "circle");

        Edge ed1 = new Edge(nod1, nod2);
        Edge ed2 = new Edge();

        Graph gr = new Graph();
        gr.AddNode(nod1);

        ed1.AddStyle("style", "solid");
        gr.AddEdge(ed1);

        Console.WriteLine(gr.ToString());

OUTPUT:

                    digraph G {
                        rankdir=LR;
                        node[shape=record];
                        
                        /*Nodes*/
                        node_one[color="red" ]
                        node_two[color="blue" shape="circle" ]
                        
                        /*Edges*/
                        node_one->node_two [style="solid" ];
                    
                    }

About

Wrapper for graphviz visualization engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages