General methods not dedicated to a particular application.
author: Alexandre Fenyo version: $Id: GenericTools.java,v 1.13 2007/03/09 22:44:21 fenyo Exp $
unsignedByteToShort(byte ub) Converts a unsigned byte (encoded into a java signed byte) to a positive signed short.
Parameters: ub - unsigned byte encoded into a java signed byte.
Removes the part of a graph that is covered by another graph.
Note that the second graph need not to be a subgraph of the first one.
Parameters: addr - g1 initial graph. Parameters: addr - g2 graph defining links to remove to the initial graph. void.
unsignedByteToShort
public static short unsignedByteToShort(byte ub)(Code)
Converts a unsigned byte (encoded into a java signed byte) to a positive signed short.
Parameters: ub - unsigned byte encoded into a java signed byte. short positive signed short.