Skip to content

balintfodor/dep-graph-test-problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dep-graph

This is a test problem solution backing a job interview.

The program reads a dependency tree from a structured text file, finds independent groups of nodes and prints them out. It also draws the graph to in an svg file and generates a graphviz input file for dot.

Most of the example files are borrowed (and processed into another format) from the graphviz gallery.

build and run

mkdir build; cd build; cmake ..; make; cd ..

build/bin/dep-graph example/simple.txt

It should print the independent graph node groups and produce the output.svg and the output.dot files.

output.svg:

To process the .dot file you need graphviz.

dot -Tpng output.dot > output.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published