caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* changing labels on ocamlgraph edges
@ 2009-03-12  1:47 Alexy Khrabrov
  2009-03-12  7:55 ` [Caml-list] " Julien SIGNOLES
  0 siblings, 1 reply; 6+ messages in thread
From: Alexy Khrabrov @ 2009-03-12  1:47 UTC (permalink / raw)
  To: OCaml

It looks like the only way to change a label on an edge e -- say  
increment it -- is to read off the old one with G.E.label, then  
remember the src and dst with G.E.src/dst, then G.remove_edge_e g e,  
create a new edge e' with G.V.create src (label+1) dst, and  
G.add_adge_e g e'.  Is this supposed to be so complicated even for the  
imperative graphs?

Cheers,
Alexy


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-03-13 10:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-12  1:47 changing labels on ocamlgraph edges Alexy Khrabrov
2009-03-12  7:55 ` [Caml-list] " Julien SIGNOLES
2009-03-12 12:47   ` Re : " Matthieu Wipliez
2009-03-12 14:38     ` Jean-Christophe Filliatre
2009-03-13  0:10       ` Alexy Khrabrov
2009-03-13 10:53         ` Re : " Matthieu Wipliez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).