public class Traces
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Algorithm |
INSTANCE
Algorithm binding for traces.
|
Constructor and Description |
---|
Traces() |
Modifier and Type | Method and Description |
---|---|
private static long[] |
computeCanon(dev.roanh.gmark.util.Graph<dev.roanh.gmark.conjunct.cpq.QueryGraphCPQ.Vertex,dev.roanh.gmark.core.graph.Predicate> input)
Runs Traces on the given input graph.
|
private static long[] |
computeCanon(int[][] adj,
int[] colors)
Computes the canonical form of the given coloured graph using traces.
|
public static final Algorithm INSTANCE
private static long[] computeCanon(dev.roanh.gmark.util.Graph<dev.roanh.gmark.conjunct.cpq.QueryGraphCPQ.Vertex,dev.roanh.gmark.core.graph.Predicate> input)
input
- The input graph.private static long[] computeCanon(int[][] adj, int[] colors)
adj
- The input graph in adjacency list format, n
arrays with each the indices of the neighbours of the
n
-th vertex.colors
- The array containing raw color information data. Contains vertex
indices in blocks of the same color with the start of a block of the same
color being indicated by a negated value. All vertex indices are also always
one higher than their actual index in the graph.