1.1 --- a/graph_displayer_canvas-event.cc Thu Jan 05 12:30:09 2006 +0000
1.2 +++ b/graph_displayer_canvas-event.cc Thu Jan 05 16:54:34 2006 +0000
1.3 @@ -850,49 +850,4 @@
1.4 std::cerr << "ERROR!!!! Invalid edge found!" << std::endl;
1.5 }
1.6 }
1.7 -
1.8 }
1.9 -
1.10 -int GraphDisplayerCanvas::addNewEdgeMap(double default_value, std::string mapname)
1.11 -{
1.12 - //create the new map
1.13 - Graph::EdgeMap<double> * emptr=new Graph::EdgeMap<double> ((mytab.mapstorage).graph, default_value);
1.14 -
1.15 - //if addition was not successful addEdgeMap returns one.
1.16 - //cause can be that there is already a map named like the new one
1.17 - if((mytab.mapstorage).addEdgeMap(mapname,emptr, default_value))
1.18 - {
1.19 - return 1;
1.20 - }
1.21 -
1.22 -
1.23 - //add it to the list of the displayable maps
1.24 - mytab.registerNewEdgeMap(mapname);
1.25 -
1.26 - //display it
1.27 - changeEdgeText(mapname);
1.28 -
1.29 - return 0;
1.30 -}
1.31 -
1.32 -int GraphDisplayerCanvas::addNewNodeMap(double default_value, std::string mapname)
1.33 -{
1.34 - //create the new map
1.35 - Graph::NodeMap<double> * emptr=new Graph::NodeMap<double> ((mytab.mapstorage).graph,default_value);
1.36 -
1.37 - //if addition was not successful addNodeMap returns one.
1.38 - //cause can be that there is already a map named like the new one
1.39 - if((mytab.mapstorage).addNodeMap(mapname,emptr, default_value))
1.40 - {
1.41 - return 1;
1.42 - }
1.43 -
1.44 - //add it to the list of the displayable maps
1.45 - mytab.registerNewNodeMap(mapname);
1.46 -
1.47 - //display it
1.48 - changeNodeText(mapname);
1.49 -
1.50 - return 0;
1.51 -}
1.52 -