org.grinvin.invariants.computers

Class AbstractInvariantCComputer

Implemented Interfaces:
InvariantComputer

public abstract class AbstractInvariantCComputer
extends AbstractInvariantComputer

Abstract superclass for invariant computers that are written in C. Provides a method to convert the graph to multicode.

Method Summary

protected int[]
graphToGRAPHAndADJAZENZ(GraphBundleView graphbundle, int maxVertices, int emptyCode)
protected int[]
graphToMulticode(GraphView graph)
Converts the graph to multicode-representation.

Methods inherited from class org.grinvin.invariants.computers.AbstractInvariantComputer

getId, getVersion

Method Details

graphToGRAPHAndADJAZENZ

protected int[] graphToGRAPHAndADJAZENZ(GraphBundleView graphbundle,
                                        int maxVertices,
                                        int emptyCode)

graphToMulticode

protected int[] graphToMulticode(GraphView graph)
Converts the graph to multicode-representation. It can then be passed on to the C-function as an array of jint's (i.e. longs in C).