开发者

Representing dependencies file syntax

开发者 https://www.devze.com 2022-12-27 15:53 出处:网络
I\'m looking for a simple way to represent simple dependencies in a file. Preferably I\'d like to use some format with a syntax already defined (e.g. JSON, YAML, etc). I\'m leaning towards graphviz\'s

I'm looking for a simple way to represent simple dependencies in a file. Preferably I'd like to use some format with a syntax already defined (e.g. JSON, YAML, etc). I'm leaning towards graphviz's dot syntax

digraph {
    A -> B;
    A -> C;
    B -> D;
}

Are there any other ways to do this?

This will be for user's to write simple dependencies i开发者_JAVA技巧n and parsed by an application.


The NetworkX graph library has a number of standard formats for data files which are worth checking out.

0

精彩评论

暂无评论...
验证码 换一张
取 消