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:
parent
9617a04354
commit
73c2ae43f0
4 changed files with 126 additions and 1 deletions
11
src/nix-store/graphml.hh
Normal file
11
src/nix-store/graphml.hh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#pragma once
|
||||
|
||||
#include "types.hh"
|
||||
|
||||
namespace nix {
|
||||
|
||||
class Store;
|
||||
|
||||
void printGraphML(ref<Store> store, const PathSet & roots);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue