1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-03 06:11:46 +02:00

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
This commit is contained in:
Antoine Eiche 2018-09-29 09:42:11 +02:00
parent 9617a04354
commit 73c2ae43f0
4 changed files with 126 additions and 1 deletions

11
src/nix-store/graphml.hh Normal file
View file

@ -0,0 +1,11 @@
#pragma once
#include "types.hh"
namespace nix {
class Store;
void printGraphML(ref<Store> store, const PathSet & roots);
}