1. 20 Jun, 2014 2 commits
    • Alexandre Duret-Lutz's avatar
      ngraph: support aliasing states · 31bf8c2c
      Alexandre Duret-Lutz authored
      * src/graph/ngraph.hh (alias_state): New method.
      * src/graphtest/ngraph.cc: Use it.
      31bf8c2c
    • Alexandre Duret-Lutz's avatar
      tgbagraph: add a merge_transitions() method. · 424de903
      Alexandre Duret-Lutz authored
      * src/graph/graph.hh: Add some framework to erase transitions, and
      defrag the resulting transitions_ vector on demand.  Also remove
      the nb_states() and nb_transitions() because num_states() and
      num_transitions() already exist.
      * src/graphtest/graph.cc, src/graphtest/ngraph.cc: Adjust to
      use num_states().
      * src/tgba/tgbagraph.hh (merge_transitions): New method.
      * src/misc/hash.hh: Add a pair_hash class, needed by
      merge_transitions().
      * src/graphtest/tgbagraph.cc, src/graphtest/tgbagraph.test: Add states
      for transitions removal and merge_transitions().
      424de903
  2. 20 May, 2014 2 commits
    • Alexandre Duret-Lutz's avatar
      graph: Add a test close to the tgba_explicit_string setup. · c793d3f1
      Alexandre Duret-Lutz authored
      * src/graph/graph.hh (boxed_label): If State_Data==void, inherit from
      std::tuple<> and implement a data() method.
      (digraph::state_data): Return by reference.
      * src/graphtest/ngraph.cc, src/graphtest/ngraph.test: Test the
      case where State_Data implements the spot::state interface.
      c793d3f1
    • Alexandre Duret-Lutz's avatar
      graph: Add a named_graph class. · a8fd188d
      Alexandre Duret-Lutz authored
      * src/graph/ngraph.hh: New file.
      * src/graph/Makefile.am: Add it.
      * src/graphtest/ngraph.cc, src/graphtest/ngraph.test: New files.
      * src/graphtest/Makefile.am: Add them
      a8fd188d