graph

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package graph implements a Directed Graph for storing state information during crawling of a Web Application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrawlGraph

type CrawlGraph struct {
	// contains filtered or unexported fields
}

CrawlGraph is a graph for storing state information during crawling

func NewCrawlGraph

func NewCrawlGraph() *CrawlGraph

NewCrawlGraph creates a new CrawlGraph instance

func (*CrawlGraph) AddEdge

func (g *CrawlGraph) AddEdge(sourceState, targetState string, action *types.Action) error

func (*CrawlGraph) AddPageState

func (g *CrawlGraph) AddPageState(n types.PageState) error

AddNavigation adds a navigation to the graph

func (*CrawlGraph) DrawGraph

func (g *CrawlGraph) DrawGraph(file string) error

func (*CrawlGraph) GetPageState

func (g *CrawlGraph) GetPageState(id string) (*types.PageState, error)

func (*CrawlGraph) GetVertices

func (g *CrawlGraph) GetVertices() []string

func (*CrawlGraph) ShortestPath

func (g *CrawlGraph) ShortestPath(sourceState, targetState string) ([]*types.Action, error)

Jump to

Keyboard shortcuts

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