public final class NodeGraph extends Object
Constructor and Description |
---|
NodeGraph(Dataset dataset)
Create the node matching graph.
|
Modifier and Type | Method and Description |
---|---|
NodeMatch |
getMatch(SourceNode node0,
SourceNode node1)
Get the match found in the dataset for the two given nodes.
|
List<NodeMatch> |
matches()
Get all matches found in the dataset.
|
NodeGraph(Dataset dataset)
The segments in the dataset must have been analysed for parallelisms before this graph is created. Otherwise no matches will be found.
dataset
- the dataset for which to create the graphpublic NodeMatch getMatch(SourceNode node0, SourceNode node1)
NodeMatch
object for this match or
null
if no such match exists in the dataset.