From: Alexy Khrabrov <deliverable@gmail.com>
To: OCaml <caml-list@inria.fr>
Subject: changing labels on ocamlgraph edges
Date: Wed, 11 Mar 2009 21:47:00 -0400 [thread overview]
Message-ID: <5F21734C-C88E-4401-8EB4-811681A42E67@gmail.com> (raw)
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
next reply other threads:[~2009-03-12 1:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-12 1:47 Alexy Khrabrov [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5F21734C-C88E-4401-8EB4-811681A42E67@gmail.com \
--to=deliverable@gmail.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox