Half-done, but I want to continue from home.
authorathos
Fri, 24 Jun 2005 08:44:54 +0000
changeset 1511d6b95a59da26
parent 1510 cde847387b5a
child 1512 e54392395480
Half-done, but I want to continue from home.
demo/helloworld.cc
doc/getstart.dox
doc/quicktour.dox
     1.1 --- a/demo/helloworld.cc	Fri Jun 24 07:58:18 2005 +0000
     1.2 +++ b/demo/helloworld.cc	Fri Jun 24 08:44:54 2005 +0000
     1.3 @@ -22,6 +22,11 @@
     1.4      for (NodeIt j(g); j!=INVALID; ++j)
     1.5        if (i != j) g.addEdge(i, j);
     1.6  
     1.7 +  std::cout << "Hello World!" << std::endl;
     1.8 +  std::cout <<  std::endl;
     1.9 +  std::cout << "This is library LEMON here! We have a graph!" << std::endl;
    1.10 +  std::cout <<  std::endl;
    1.11 +
    1.12    std::cout << "Nodes:";
    1.13    for (NodeIt i(g); i!=INVALID; ++i)
    1.14      std::cout << " " << g.id(i);
     2.1 --- a/doc/getstart.dox	Fri Jun 24 07:58:18 2005 +0000
     2.2 +++ b/doc/getstart.dox	Fri Jun 24 08:44:54 2005 +0000
     2.3 @@ -11,16 +11,30 @@
     2.4  
     2.5  
     2.6  
     2.7 -
     2.8  \section downloadLEMON How to download LEMON
     2.9  
    2.10 -You can download LEMON from the following web site:
    2.11 +You can download LEMON from the LEMON web site:
    2.12 +http://lemon.cs.elte.hu
    2.13 +by following the download link. There you will find the issued distributions in form of \e .ta.gz files. If you want a developer version  (for example you want to contribute in developing the library LEMON) then you might want to use our Subversion repository. This case is not detailed here, so from now on we suppose that you downloaded a tar.gz file.
    2.14  
    2.15  
    2.16  \section installLEMON How to install LEMON
    2.17  
    2.18  In order to install LEMON you have to do the following
    2.19  
    2.20 +Download the tarball and issue the following commands:
    2.21 +
    2.22 +\code
    2.23 +tar xvzf lemon-0.3.1.tar.gz
    2.24 +cd lemon-0.3.1
    2.25 +./configure
    2.26 +make
    2.27 +make check (This is optional, but recomended. It runs a bunch of tests.)
    2.28 +make install
    2.29 +\endcode
    2.30 +
    2.31 +These commands install LEMON under /usr/local. If you want to install it to some other place, then pass the --prefix=DIR flag to ./configure.
    2.32 +
    2.33  Ide kell írni:
    2.34   
    2.35  -Hol fordul (Windows-os fordító nem fordítja, unix/linux alatt gcc hanyas verziója kell)
     3.1 --- a/doc/quicktour.dox	Fri Jun 24 07:58:18 2005 +0000
     3.2 +++ b/doc/quicktour.dox	Fri Jun 24 08:44:54 2005 +0000
     3.3 @@ -18,21 +18,16 @@
     3.4  graph: a very good description can be found in the page
     3.5  about \ref graphs "graphs".
     3.6  
     3.7 -You will also want to assign data to the edges or nodes of the graph, for example a length or capacity function defined on the edges. You can do this in LEMON using so called \ref maps "maps". You can define a map on the nodes or on the edges of the graph and the value of the map (the range of the function) can be practically almost any type. Read more about maps \ref maps-page "here".
     3.8 +You will also want to assign data to the edges or nodes of the graph, for example a length or capacity function defined on the edges. You can do this in LEMON using so called \ref maps "maps". You can define a map on the nodes or on the edges of the graph and the value of the map (the range of the function) can be practically almost of any type. Read more about maps \ref maps-page "here".
     3.9  
    3.10 -Some examples are the following (you will find links next to the code fragments that help to download full demo programs):
    3.11 +Some examples are the following (you will find links next to the code fragments that help to download full demo programs: save them on your computer and compile them according to the description in the page about \ref getsart How to start using LEMON):
    3.12  
    3.13  - First we give two examples that show how to instantiate a graph. The
    3.14  first one shows the methods that add nodes and edges, but one will
    3.15  usually use the second way which reads a graph from a stream (file).
    3.16 --# The following code fragment shows how to fill a graph with data. It creates a complete graph on 4 nodes. The type Listgraph is one of the LEMON graph types: the typedefs in the beginning are for convenience and we will supppose them later as well.
    3.17 +-# The following code fragment shows how to fill a graph with data. It creates a complete graph on 4 nodes. The type Listgraph is one of the LEMON graph types: the typedefs in the beginning are for convenience and we will suppose them later as well.
    3.18   \code
    3.19    typedef ListGraph Graph;
    3.20 -  typedef Graph::Edge Edge;
    3.21 -  typedef Graph::InEdgeIt InEdgeIt;
    3.22 -  typedef Graph::OutEdgeIt OutEdgeIt;
    3.23 -  typedef Graph::EdgeIt EdgeIt;
    3.24 -  typedef Graph::Node Node;
    3.25    typedef Graph::NodeIt NodeIt;
    3.26  
    3.27    Graph g;
    3.28 @@ -45,10 +40,12 @@
    3.29        if (i != j) g.addEdge(i, j);
    3.30   \endcode 
    3.31  
    3.32 +See the whole program in file \ref helloworld.cc.
    3.33 +
    3.34  If you want to read more on the LEMON graph structures and concepts, read the page about \ref graphs "graphs". 
    3.35  
    3.36  -# The following code shows how to read a graph from a stream (e.g. a file). LEMON supports the DIMACS file format: it can read a graph instance from a file 
    3.37 -in that format (find the documentation of the DIMECS file format on the web). 
    3.38 +in that format (find the documentation of the DIMACS file format on the web). 
    3.39  \code
    3.40  Graph g;
    3.41  std::ifstream f("graph.dim");
    3.42 @@ -101,7 +98,8 @@
    3.43      len.set(v4_t, 8);
    3.44      len.set(v5_t, 8);
    3.45  
    3.46 -    std::cout << "The id of s is " << g.id(s)<< ", the id of t is " << g.id(t)<<"."<<std::endl;
    3.47 +    std::cout << "The id of s is " << g.id(s)<< std::endl;
    3.48 +    std::cout <<"The id of t is " << g.id(t)<<"."<<std::endl;
    3.49  
    3.50      std::cout << "Dijkstra algorithm test..." << std::endl;
    3.51  
    3.52 @@ -112,7 +110,8 @@
    3.53      
    3.54      std::cout << "The distance of node t from node s: " << dijkstra_test.dist(t)<<std::endl;
    3.55  
    3.56 -    std::cout << "The shortest path from s to t goes through the following nodes (the first one is t, the last one is s): "<<std::endl;
    3.57 +    std::cout << "The shortest path from s to t goes through the following nodes" <<std::endl;
    3.58 + std::cout << " (the first one is t, the last one is s): "<<std::endl;
    3.59  
    3.60      for (Node v=t;v != s; v=dijkstra_test.predNode(v)){
    3.61  	std::cout << g.id(v) << "<-";
    3.62 @@ -136,6 +135,10 @@
    3.63  class \ref lemon::Kruskal "LEMON Kruskal class" does this job for you.
    3.64  The following code fragment shows an example:
    3.65  
    3.66 +Ide Zsuzska fog irni!
    3.67 +
    3.68 +- 
    3.69 +
    3.70  \code
    3.71  
    3.72  \endcode