about summary refs log tree commit diff
path: root/src/nix-store/graphml.hh
diff options
context:
space:
mode:
authorAntoine Eiche <lewo@abesis.fr>2018-09-29T07·42+0200
committerAntoine Eiche <lewo@abesis.fr>2018-10-20T07·48+0200
commit73c2ae43f08ca35cbb8f86ec7c2efc15ad8686b9 (patch)
treef9e9e24a187bced536401bcffed46d6791267147 /src/nix-store/graphml.hh
parent9617a043541d77d79e4f20f9676aae63de72f45d (diff)
Add --graphml option to the nix-store --query command
This prints the references graph of the store paths in the graphML
format [1]. The graphML format is supported by several graph tools
such as the Python Networkx library or the Apache Thinkerpop project.

[1] http://graphml.graphdrawing.org
Diffstat (limited to 'src/nix-store/graphml.hh')
-rw-r--r--src/nix-store/graphml.hh11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nix-store/graphml.hh b/src/nix-store/graphml.hh
new file mode 100644
index 000000000000..b78df1e49a67
--- /dev/null
+++ b/src/nix-store/graphml.hh
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "types.hh"
+
+namespace nix {
+
+class Store;
+
+void printGraphML(ref<Store> store, const PathSet & roots);
+
+}