doc/quicktour.dox
changeset 1570 da93692e6537
parent 1534 b86aad11f842
child 1578 1d3a1bcbc874
equal deleted inserted replaced
14:b2eb6c8bf6a3 15:1070485bb9fa
    63 
    63 
    64 So here is a file describing a graph of 6 nodes (0 to 5), two nodemaps
    64 So here is a file describing a graph of 6 nodes (0 to 5), two nodemaps
    65 (called \c coordinates_x and \c coordinates_y), several edges, an edge map
    65 (called \c coordinates_x and \c coordinates_y), several edges, an edge map
    66 called \c capacity and two designated nodes (called \c source and \c target).
    66 called \c capacity and two designated nodes (called \c source and \c target).
    67 
    67 
    68 \include sample.lgf
    68 \verbatim
       
    69 @nodeset
       
    70 id      coordinates_x   coordinates_y
       
    71 5       796.398 208.035
       
    72 4       573.002 63.002
       
    73 3       568.549 401.748
       
    74 2       277.889 68.476
       
    75 1       288.248 397.327
       
    76 0       102.239 257.532
       
    77 @edgeset
       
    78                 id      capacity
       
    79 4       5       6       8
       
    80 3       5       5       8
       
    81 2       4       4       5
       
    82 1       4       3       8
       
    83 1       3       2       5
       
    84 0       2       1       10
       
    85 0       1       0       10
       
    86 #This is a comment here
       
    87 @nodes
       
    88 source 0
       
    89 target 5
       
    90 @edges 
       
    91 @attributes 
       
    92 author "Attila BERNATH"
       
    93 @end
       
    94 \endverbatim
    69 
    95 
    70 Finally let us give a simple example that reads a graph from a file and writes
    96 Finally let us give a simple example that reads a graph from a file and writes
    71 it to the standard output.
    97 it to the standard output.
    72 
    98 
    73 \include reader_writer_demo.cc
    99 \include reader_writer_demo.cc