COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
07/29/05 14:01:37 (15 years ago)
Author:
Akos Ladanyi
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2111
Message:

added support for saving files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/graph_displayer_canvas-edge.cc

    r1599 r1606  
    1 #include <graph_displayer_canvas.h>
    2 #include <broken_edge.h>
     1#include "graph_displayer_canvas.h"
     2#include "broken_edge.h"
    33#include <math.h>
    44
     
    1313      min=edge_property_defaults[E_WIDTH];
    1414      max=edge_property_defaults[E_WIDTH];
    15       actual_map=new Graph::EdgeMap<double>(g,edge_property_defaults[E_WIDTH]);
     15      actual_map=new Graph::EdgeMap<double>(mapstorage.graph,edge_property_defaults[E_WIDTH]);
    1616    }
    1717  else
     
    2424  if(edge==INVALID)
    2525    {
    26       for (EdgeIt i(g); i!=INVALID; ++i)
     26      for (EdgeIt i(mapstorage.graph); i!=INVALID; ++i)
    2727        {
    2828          double v=abs((*actual_map)[i]);
     
    5959  if(mapname=="Default")
    6060    {
    61       actual_map=new Graph::EdgeMap<double>(g,edge_property_defaults[E_COLOR]);
     61      actual_map=new Graph::EdgeMap<double>(mapstorage.graph,edge_property_defaults[E_COLOR]);
    6262    }
    6363  else
     
    8181  if(edge==INVALID)
    8282    {
    83       for (EdgeIt i(g); i!=INVALID; ++i)
     83      for (EdgeIt i(mapstorage.graph); i!=INVALID; ++i)
    8484        {
    8585          double w=(*actual_map)[i];
     
    126126  if(edge==INVALID)
    127127    {
    128       for (EdgeIt i(g); i!=INVALID; ++i)
     128      for (EdgeIt i(mapstorage.graph); i!=INVALID; ++i)
    129129        {
    130130          if(mapname!="Default")
Note: See TracChangeset for help on using the changeset viewer.