public class Crawler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
m_allowBackward
A flag that determines if the crawler is allowed to take backward
connections.
|
protected boolean |
m_allowForward
A flag that determines if the crawler is allowed to take forward
connections.
|
protected Node |
m_start
The starting point of the crawl.
|
Constructor and Description |
---|
Crawler(Node start)
Creates a new crawler.
|
Modifier and Type | Method and Description |
---|---|
void |
crawl()
Visits every node in the graph from the specified starting point.
|
void |
visit(Node n)
Visits a node in the graph.
|
protected boolean m_allowForward
protected boolean m_allowBackward
protected Node m_start
public Crawler(Node start)
start
- The starting point of the crawlpublic void crawl()
public void visit(Node n)
n
- The node to visitCopyright © Sylvain HallĂ©. All Rights Reserved.