public abstract class AbstractVF2GraphData extends Object
VF2Algorithm during the search for a suitable matching for
a single graph.| Modifier and Type | Field and Description |
|---|---|
protected static int |
NULL_NODE
Placeholder value representing that no node contained in a graph
has been chosen yet.
|
| Constructor and Description |
|---|
AbstractVF2GraphData(AbstractVF2GraphData data)
Creates a shallow copy of the given AbstractVF2GraphData object.
|
AbstractVF2GraphData(Graph graph)
Initializes an empty AbstractVF2GraphData object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsIngoing(int node) |
boolean |
containsIngoingUnmatched(int node)
Checks whether the given node is reachable by in ingoing edge from a matched node,
but has not been matched itself yet.
|
abstract boolean |
containsMatch(int node)
Checks whether the partial morphism stored for the graph underlying this AbstractVF2GraphData
containsSubsumingState a matching for the given node.
|
boolean |
containsOutgoing(int node) |
boolean |
containsOutgoingUnmatched(int node)
Checks whether the given node is reachable by in outgoing edge from a matched node,
but has not been matched itself yet.
|
Graph |
getGraph() |
int |
getMatchingSize() |
int |
getTerminalInSize() |
int |
getTerminalOutSize() |
protected abstract void |
matchNode(int matchFrom,
int matchTo) |
protected abstract void |
unmatchNode(int node) |
protected static final int NULL_NODE
public AbstractVF2GraphData(Graph graph)
graph - The graph represented by this object.public AbstractVF2GraphData(AbstractVF2GraphData data)
data - The AbstractVF2GraphData object that should be copied.protected abstract void matchNode(int matchFrom,
int matchTo)
protected abstract void unmatchNode(int node)
public abstract boolean containsMatch(int node)
node - The node that should be checked for a matching node.public Graph getGraph()
public boolean containsIngoingUnmatched(int node)
node - The node that should be checked.public boolean containsOutgoingUnmatched(int node)
node - The node that should be checked.public boolean containsOutgoing(int node)
public boolean containsIngoing(int node)
public int getTerminalInSize()
public int getTerminalOutSize()
public int getMatchingSize()
Copyright © 2018. All rights reserved.