demo_read_graph.cpp File Reference

Demonstrating reading a graph in the "DOT" language. More...

#include <iostream>
#include <string>
#include <boost/graph/graphviz.hpp>
#include <boost/graph/adjacency_list.hpp>
#include <boost/property_map/dynamic_property_map.hpp>

Go to the source code of this file.


int main (const int argc, const char *const argv[])

Detailed Description

Demonstrating reading a graph in the "DOT" language.

Reads from standard input, prints the number of vertices and the number of edges, and outputs the graph to standard output. If no command-line argument is provided, then an undirected graph is expected, otherwise a directed graph.

It seems that boost::read_graphviz handles vertex names always as strings, and thus the dynamic property map needs to contain at least the map node_id?
Print out the vertex names.
The doxygen-output of structure "process" is complete nonsense.

Definition in file demo_read_graph.cpp.

Function Documentation

int main ( const int  argc,
const char *const  argv[] 

Definition at line 50 of file demo_read_graph.cpp.