public class Bliss
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Algorithm |
INSTANCE
Algorithm binding for bliss.
|
Constructor and Description |
---|
Bliss() |
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 Bliss on the given input graph.
|
private static long[] |
computeCanon(int[] edges,
int[] colors)
Computes the canonical labelling of the given coloured graph.
|
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[] edges, int[] colors)
edges
- The input graph as a list of edges with two consecutive
indices representing the ID of the source and target vertex
of an edge respectively.colors
- An array with as length the number of vertices in the
graph and at each index for the vertex with the same ID as the
index its color (as an integer).