Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/linarcx/trinity
generating a graph based on links among files
https://github.com/linarcx/trinity
bash bash-script dot-language graphviz links linux mind-mapping second-brain unix
Last synced: 2 days ago
JSON representation
generating a graph based on links among files
- Host: GitHub
- URL: https://github.com/linarcx/trinity
- Owner: LinArcX
- License: gpl-3.0
- Created: 2023-08-13T11:27:39.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-08-13T18:39:23.000Z (over 1 year ago)
- Last Synced: 2024-01-26T08:45:48.410Z (10 months ago)
- Topics: bash, bash-script, dot-language, graphviz, links, linux, mind-mapping, second-brain, unix
- Language: Shell
- Homepage:
- Size: 1.47 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Trinity
generating a graph based on links among files.# Idea
I developed trinity since i need a tool to show me all the relationships and links between my files. (i use these linked, to make a second brain.)The idea is simple. i have bunch of simple `.txt` files in a flat hierarchy structure that can refer to each other.(like in **docs** directory)
to create a graph of links:
`./trinity.sh --output-dir output --input-dir docs --input-file Matrix.txt --open-img > /dev/null 2>&1`
it will create two files in output directory:
1. Matrix.gv
2. Matrix.pngactually i converted all links that i find inside input file to [dot language](https://en.wikipedia.org/wiki/DOT_(graph_description_language)) and then create an image from it.
this is the content of auto-generated `.gv` file:
```
graph Matrix {
layout=sfdp;
edge [penwidth=5 color="#FFCC80"]
node [style="filled" penwidth=0 fillcolor="#D7CCC8" fontcolor="#424242"]Matrix [fontsize=33]
node [fontsize=28]
Matrix -- {
Neo
Mouse
Cypher
Trinity
Morpheus
SpoonBoy
TheOracle
AgentSmith
Merovingian
TheArchitect
}node [fontsize=24]
Neo -- {
Hacker
}node [fontsize=20]
Hacker -- {
RichardStallman
LinusTorvalds
}node [fontsize=16]
RichardStallman -- {
Emacs
}node [fontsize=12]
LinusTorvalds -- {
Linux
Git
}graph [ranksep=6];
}
```now you can open the image:
`xdg-open output/Matrix.png > /dev/null 2>&1`
To see other options: `trinity.sh --help`.
## dependencies
- [graphviz](https://graphviz.org/)## Who is Trinity
## License
![License](https://img.shields.io/github/license/LinArcX/trinity.svg?style=flat-square)