equal
deleted
inserted
replaced
720 } |
720 } |
721 max_arc_label = i-1; |
721 max_arc_label = i-1; |
722 |
722 |
723 // write .lgf file |
723 // write .lgf file |
724 { |
724 { |
725 DigraphWriter<Digraph> gwriter(filename, digraph); |
725 DigraphWriter<Digraph> gwriter(digraph, filename); |
726 |
726 |
727 gwriter.nodeMap("label", node_label); |
727 gwriter.nodeMap("label", node_label); |
728 gwriter.arcMap("label", arc_label); |
728 gwriter.arcMap("label", arc_label); |
729 |
729 |
730 // write node maps |
730 // write node maps |
824 } |
824 } |
825 |
825 |
826 // write .conf file |
826 // write .conf file |
827 if (gui_sect_save_dest == CONF_FILE) |
827 if (gui_sect_save_dest == CONF_FILE) |
828 { |
828 { |
829 DigraphWriter<Digraph> lwriter(filename + ".conf", digraph); |
829 DigraphWriter<Digraph> lwriter(digraph, filename + ".conf"); |
830 GuiWriter gui_writer(this); |
830 GuiWriter gui_writer(this); |
831 gui_writer.write(lwriter.ostream()); |
831 gui_writer.write(lwriter.ostream()); |
832 lwriter.run(); |
832 lwriter.run(); |
833 } |
833 } |
834 } |
834 } |
1335 { |
1335 { |
1336 using std::vector; |
1336 using std::vector; |
1337 using std::map; |
1337 using std::map; |
1338 using std::string; |
1338 using std::string; |
1339 |
1339 |
1340 DigraphReader<Digraph> greader(filename, digraph); |
1340 DigraphReader<Digraph> greader(digraph, filename); |
1341 |
1341 |
1342 // read the label maps |
1342 // read the label maps |
1343 greader.nodeMap("label", node_label); |
1343 greader.nodeMap("label", node_label); |
1344 if (read_arc_label) |
1344 if (read_arc_label) |
1345 greader.arcMap("label", arc_label); |
1345 greader.arcMap("label", arc_label); |
1458 |
1458 |
1459 if(options[N_MAPS]) |
1459 if(options[N_MAPS]) |
1460 { |
1460 { |
1461 if(active_nodemaps[N_RADIUS]!="") |
1461 if(active_nodemaps[N_RADIUS]!="") |
1462 { |
1462 { |
1463 _nodeSizes=getNumericNodeMap(active_nodemaps[N_RADIUS]); |
1463 const Digraph::NodeMap<double> &temp = |
|
1464 getNumericNodeMap(active_nodemaps[N_RADIUS]); |
|
1465 for(NodeIt n(digraph);n!=INVALID;++n) |
|
1466 _nodeSizes[n]= temp[n]; |
1464 } |
1467 } |
1465 if(active_nodemaps[N_COLOR]!="") |
1468 if(active_nodemaps[N_COLOR]!="") |
1466 { |
1469 { |
1467 for(NodeIt ni(digraph);ni!=INVALID;++ni) |
1470 for(NodeIt ni(digraph);ni!=INVALID;++ni) |
1468 { |
1471 { |
1481 } |
1484 } |
1482 if(options[E_MAPS]) |
1485 if(options[E_MAPS]) |
1483 { |
1486 { |
1484 if(active_arcmaps[E_WIDTH]!="") |
1487 if(active_arcmaps[E_WIDTH]!="") |
1485 { |
1488 { |
1486 _arcWidths=getNumericArcMap(active_arcmaps[E_WIDTH]); |
1489 const Digraph::ArcMap<double> &temp = |
|
1490 getNumericArcMap(active_arcmaps[E_WIDTH]); |
|
1491 for(ArcIt a(digraph);a!=INVALID;++a) |
|
1492 _arcWidths[a]=temp[a]; |
1487 } |
1493 } |
1488 if(active_arcmaps[E_COLOR]!="") |
1494 if(active_arcmaps[E_COLOR]!="") |
1489 { |
1495 { |
1490 for(ArcIt ei(digraph);ei!=INVALID;++ei) |
1496 for(ArcIt ei(digraph);ei!=INVALID;++ei) |
1491 { |
1497 { |