COIN-OR::LEMON - Graph Library

Changeset 1429:4283998fb2be in lemon-0.x for src/lemon/bits/item_reader.h


Ignore:
Timestamp:
05/19/05 13:49:42 (19 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1903
Message:

Able to read edge from undirected edgeset
Graph reader and graph writer can resolve items by id.

It makes possible:

GraphReader?<Graph> reader(std::cin, graph);

reader.readNodeMap....

NewEdgeSetAdaptor?<Graph> edgeset(graph);
UndirEdgeSetReader?<Graph> unir_edgeset_reader(reader, edgeset, reader);

reader.run();

It reads the graph and an additional edgeset in to the edgeset.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/bits/item_reader.h

    r1427 r1429  
    349349    void read(std::istream& is, Value& value) const {
    350350      char c;
    351       if (!(is >> c)) return;
     351      if (!(is >> std::ws >> c)) return;
    352352      is.putback(c);
    353353      switch (c) {
Note: See TracChangeset for help on using the changeset viewer.