From 97354fdd6e118dd68db72891fef27ea4e1c69ee9 Mon Sep 17 00:00:00 2001 From: Nikolay Dubina Date: Sat, 26 Jun 2021 16:29:03 +0800 Subject: [PATCH] Update README.md --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c5e7caf..f7c98f1 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ $ go install github.com/nikolaydubina/jsonl-graph Graph is represented as JSONL of nodes and edges. -Node contains `id` with string and fields. +Node contains `id` and any fields ``` { "id": "github.com/gin-gonic/gin", @@ -25,7 +25,7 @@ Node contains `id` with string and fields. } ``` -Edge contains `from` and `to` with node `id`s. +Edge contains `from` and `to` with node `id`s ```json { "from": "github.com/gin-gonic/gin", @@ -41,7 +41,6 @@ $ cat ' ... {"from":"github.com/gin-gonic/gin","to":"golang.org/x/tools"} {"from":"github.com/gin-gonic/gin","to":"github.com/go-playground/validator/v10"} -... ' | jsonl-graph -color-scheme=file://$PWD/docs/colors.json | dot -Tsvg > colored.svg ``` ![gin-color](./docs/gin_color.svg) @@ -54,7 +53,6 @@ $ cat ' ... {"from":"github.com/gin-gonic/gin","to":"golang.org/x/tools"} {"from":"github.com/gin-gonic/gin","to":"github.com/go-playground/validator/v10"} -... ' | jsonl-graph | dot -Tsvg > basic.svg ``` ![gin-nocolor](./docs/gin_nocolor.svg)