Starting edge on Chinesse Postman problem

Aperta
#1,119 0 commenti 1 reazione 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@XJTUmg ci sta già lavorando.

Dal 11/10/2018.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

ChPP Discussion

@XJTUmg

Is it possible to add to the Chinese postman problem a start_eid (start edge id) so that the first line of the result is that edge?

SELECT * FROM pgr_directedChPP(
    'SELECT id,
     source, target,
     cost, reverse_cost FROM edge_table where id < 17'
);
 seq | node | edge | cost | agg_cost
-----+------+------+------+----------
   1 |    4 |    3 |    1 |        0
   2 |    3 |    2 |    1 |        1
   3 |    2 |    1 |    1 |        2
   4 |    1 |    1 |    1 |        3
etc

have

SELECT * FROM pgr_directedChPP(
    'SELECT id,
     source, target,
     cost, reverse_cost FROM edge_table where id < 17',
    2 -- the first edge to be on the list is edge 2
);
 seq | node | edge | cost | agg_cost
-----+------+------+------+----------
   1 |    3 |    2 |    1 |        1
   2 |    2 |    1 |    1 |        2
   3 |    1 |    1 |    1 |        3
etc
Lingua principale
C++
Stelle
1.4k
Fork
397
Merge medio
2g 2h
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pgRouting/pgrouting

Tutte le issue di pgRouting/pgrouting

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.