public class FlatteningCrawler
extends java.lang.Object
NestedNode
directly into the global graph. This has for effect of
removing these nodes, producing a "flat" graph with no nested elements.Modifier and Type | Field and Description |
---|---|
protected NodeConnector |
m_connector
A connector used to connect nodes.
|
protected java.util.Map<Node,Node> |
m_copies
A map associating original nodes to their corresponding copy.
|
protected Node |
m_start
The starting point for the crawl.
|
Constructor and Description |
---|
FlatteningCrawler(Node start,
NodeConnector connector) |
FlatteningCrawler(Node start,
NodeConnector connector,
FlatteningCrawler crawler) |
Modifier and Type | Method and Description |
---|---|
void |
crawl() |
protected Node |
crawl(Node current,
java.util.Set<Node> visited) |
Node |
getRootCopy() |
protected Node |
handleNode(Node current,
java.util.Set<Node> visited) |
protected java.util.Map<Node,Node> m_copies
protected NodeConnector m_connector
protected Node m_start
public FlatteningCrawler(Node start, NodeConnector connector)
public FlatteningCrawler(Node start, NodeConnector connector, FlatteningCrawler crawler)
Copyright © Sylvain HallĂ©. All Rights Reserved.