Documentation
¶
Index ¶
- type FileGraph
- func (fg *FileGraph) DrawDot(filename string) error
- func (fg *FileGraph) DrawG6Html(filename string) error
- func (fg *FileGraph) FillWithRed(vertexHash string) error
- func (fg *FileGraph) FillWithYellow(vertexHash string) error
- func (fg *FileGraph) RemoveNodeById(path string) error
- func (fg *FileGraph) ToDirGraph() (*FileGraph, error)
- func (fg *FileGraph) ToG6Data() (*g6.Data, error)
- type FileVertex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileGraph ¶
type FileGraph struct {
// reference graph (called graph)
G graph.Graph[string, *FileVertex]
// reverse reference graph (call graph)
Rg graph.Graph[string, *FileVertex]
}
func (*FileGraph) DrawG6Html ¶
func (*FileGraph) FillWithRed ¶
func (*FileGraph) FillWithYellow ¶
func (*FileGraph) RemoveNodeById ¶
func (*FileGraph) ToDirGraph ¶
type FileVertex ¶
func Path2vertex ¶
func Path2vertex(fp string) *FileVertex
func (*FileVertex) Id ¶
func (fv *FileVertex) Id() string
Click to show internal directories.
Click to hide internal directories.