file

package
v0.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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) DrawDot

func (fg *FileGraph) DrawDot(filename string) error

func (*FileGraph) DrawG6Html

func (fg *FileGraph) DrawG6Html(filename string) error

func (*FileGraph) FillWithRed

func (fg *FileGraph) FillWithRed(vertexHash string) error

func (*FileGraph) FillWithYellow

func (fg *FileGraph) FillWithYellow(vertexHash string) error

func (*FileGraph) RemoveNodeById

func (fg *FileGraph) RemoveNodeById(path string) error

func (*FileGraph) ToDirGraph

func (fg *FileGraph) ToDirGraph() (*FileGraph, error)

func (*FileGraph) ToG6Data

func (fg *FileGraph) ToG6Data() (*g6.Data, error)

type FileVertex

type FileVertex struct {
	Path       string
	Referenced int
}

func Path2vertex

func Path2vertex(fp string) *FileVertex

func (*FileVertex) Id

func (fv *FileVertex) Id() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL