Package nnetwork
Class Codec
java.lang.Object
nnetwork.Codec
public class Codec
extends java.lang.Object
Encodes and decodes graph in the Edge Vector format.
-
Constructor Summary
Constructors Constructor Description Codec()
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Codec
public Codec()
-
-
Method Details
-
coder
public int coder(int a, int b)On input of two nodes, you get the place of their edge on the vector. -
decoder
public int[] decoder(int q)On input of one place of the vector that denotes one edge of the graph you get the two nodes that define the edge
-