1.参考:
https://xuxinkun.github.io/2018/09/03/graph-easy/
http://bloodgate.com/perl/graph/manual/faq.html
2.经典例子:描绘kubernetes主要组件的联系图
[clouder@xiaowei ~]$ echo '[kubectl],[kube-proxy],[kube-scheduler],[kube-controller],[kubelet]->[kube-api]->[etcd]' |graph-easy
+------------+
| kubectl |
+------------+
|
|
v
+-----------------+ +------------+ +---------+
| kube-controller | --> | | --> | etcd |
+-----------------+ | kube-api | +---------+
+-----------------+ | | +---------+
| kube-scheduler | --> | | <-- | kubelet |
+-----------------+ +------------+ +---------+
^
|
|
+------------+
| kube-proxy |
+------------+
3. 线上加上标:echo "[guangzhou]-- car -->[chaozhou]-- plain --> [guangzhou]" |graph-easy
plain
+----------------------+
v |
+-----------+ car +----------+
| guangzhou | -------> | chaozhou |
+-----------+ +----------+
4.多个对象指向一个目标:
[clouder@xiaowei ~]$ echo '[b],[c]-->[a]'|graph-easy
+---+ +---+ +---+
| b | --> | a | <-- | c |
+---+ +---+ +---+
用一个例子来演示会更加清晰