graph: Introduces README file
[lcapit-junk-code.git] / graph / README
blob9f839e403b5612dc6ca9039c2f63f0fc57db5219
2 Introduction
3 ============
5 This program can find the minimum spanning tree of a graph by using
6 Prim's algorithm. It is written in C#.
8 Unfortunately it does not have graphics support, this mean that the
9 user has to enter the graph information by writing a text file. The
10 output (the minimum spanning tree) is also given as text.
12 There are various examples of graph text files in this repository,
13 their are named graphN.txt; where N is a number.
15 Compiling
16 =========
18 To compile the program do:
20 $ make
22 To run the test-suite do:
24 $ make check
26 Running
27 =======
29 To run the program do:
31 $ ./prim < graph-file.txt >
33 For example, to pass graph1.txt as the graph input do:
35 $ ./prim graph1.txt
38 Luiz Fernando N. Capitulino
39 <lcapitulino@gmail.com>