Documentation
¶
Overview ¶
Package graph implements a Directed Graph for storing state information during crawling of a Web Application.
Index ¶
- type CrawlGraph
- func (g *CrawlGraph) AddEdge(sourceState, targetState string, action *types.Action) error
- func (g *CrawlGraph) AddPageState(n types.PageState) error
- func (g *CrawlGraph) DrawGraph(file string) error
- func (g *CrawlGraph) GetPageState(id string) (*types.PageState, error)
- func (g *CrawlGraph) GetVertices() []string
- func (g *CrawlGraph) ShortestPath(sourceState, targetState string) ([]*types.Action, error)
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)
Click to show internal directories.
Click to hide internal directories.