graph

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 5 Imported by: 0

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