Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 1st, 2012  |  syntax: C++  |  size: 1.10 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. void    runtime_analysis_data::graphs_to_file()
  2. {
  3.         using namespace std;
  4.         using namespace lemon;
  5.  
  6.         string stru(*graph_stream);
  7.         stru+=".ug";
  8.         string strc(*graph_stream);
  9.         strc+=".cg";
  10.         string strd(*graph_stream);
  11.         strd+=".dg";
  12.  
  13.         //template <class GRAPH_t, class NMAP_t, class AMAP_t, class AITER_t, class ADATA_t>
  14.         save_single_graph<SmartDigraph, SmartDigraph::NodeMap<string>,  SmartDigraph::ArcMap<string>, SmartDigraph::ArcIt, SmartDigraph::ArcMap<arc_attributes *> >(ugraph,uarc_attributes,stru);
  15.         save_single_graph<SmartArcSet<SmartDigraph>, SmartArcSet<SmartDigraph>::NodeMap<string>, SmartArcSet<SmartDigraph>::ArcMap<string>, SmartArcSet<SmartDigraph>::ArcIt,
  16.         SmartArcSet<SmartDigraph>::ArcMap<arc_attributes *> >(cgraph, carc_attributes, strc);
  17.         save_single_graph<SmartArcSet<SmartDigraph>, SmartArcSet<SmartDigraph>::NodeMap<string>, SmartArcSet<SmartDigraph>::ArcMap<string>, SmartArcSet<SmartDigraph>::ArcIt,
  18.         SmartArcSet<SmartDigraph>::ArcMap<arc_attributes *> >(dgraph, darc_attributes, strd);
  19. }