diff options
author | Antoine Eiche <lewo@abesis.fr> | 2018-09-29 09:42:11 +0200 |
---|---|---|
committer | Antoine Eiche <lewo@abesis.fr> | 2018-10-20 09:48:34 +0200 |
commit | 73c2ae43f08ca35cbb8f86ec7c2efc15ad8686b9 (patch) | |
tree | f9e9e24a187bced536401bcffed46d6791267147 /src/nix-store/graphml.hh | |
parent | 9617a043541d77d79e4f20f9676aae63de72f45d (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.hh | 11 |
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 000000000..b78df1e49 --- /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); + +} |