Documentation
¶
Index ¶
- type Graph
- func (this *Graph) Edge(tailObj, headObj interface{}) *_Edge
- func (this *Graph) GenDotOutput(outPath, imgFormat string) error
- func (this *Graph) IsEdgeAdded(tailObj, headObj interface{}) bool
- func (this *Graph) IsNodeAdded(obj interface{}) bool
- func (this *Graph) Name() string
- func (this *Graph) Node(obj interface{}) *_Node
- func (this *Graph) SetName(s string)
- func (this *Graph) Write(w io.Writer)
- func (this *Graph) WriteFile(path string) error
- type IExportGv
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graph ¶
type Graph struct {
// 默认的边界属性
DefaultEdge _Edge
// 默认的结点属性
DefaultNode _Node
AutoTypeInfo bool
AutoObjInfo bool
// contains filtered or unexported fields
}
func (*Graph) Edge ¶
func (this *Graph) Edge(tailObj, headObj interface{}) *_Edge
获取/添加边, 其中正方向(tail --> head) 默认有箭头 参数可以是 *_Node, 也可以是外部对象, 如果是外部对象则自动生成 *_Node
func (*Graph) GenDotOutput ¶
运行dot工具, 生成图片
func (*Graph) IsEdgeAdded ¶
func (*Graph) IsNodeAdded ¶
Click to show internal directories.
Click to hide internal directories.