mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 12:05:19 -06:00
graph: graphml backend: simplification
I don't see the necessity of this string-replace-substring/object->string dance and the result is ill-formed with another node type than package. * guix/graph.scm (emit-graphml-node): simplfify. (emit-graphml-edge): simplify. Change-Id: If7520a9829ad5f6ebcc5357b201ab58d6e43b735 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
706c2fa0a9
commit
14531a1eb8
1 changed files with 3 additions and 3 deletions
|
|
@ -422,13 +422,13 @@ nodeArray.push(nodes[\"~a\"]);~%"
|
|||
(format port " <node id=\"~a\">
|
||||
<data key=\"d0\">~a</data>
|
||||
</node>~%"
|
||||
(string-replace-substring (object->string id) "\"" "\\\"")
|
||||
id
|
||||
label))
|
||||
|
||||
(define (emit-graphml-edge id1 id2 port)
|
||||
(format port " <edge source=\"~a\" target=\"~a\"/>~%"
|
||||
(string-replace-substring (object->string id1) "\"" "\\\"")
|
||||
(string-replace-substring (object->string id2) "\"" "\\\"")))
|
||||
id1
|
||||
id2))
|
||||
|
||||
(define %graphml-backend
|
||||
(graph-backend "graphml"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue