public void add(int forwardId, int backwardId, int cost) {int offset = (backwardId * forwardSize + forwardId) * 2;costs.putShort(offset, (short) cost);}

public void add ( int forwardId , int backwardId , int cost ) { int offset = ( backwardId * forwardSize + forwardId ) * 2 ; costs . putShort ( offset , ( short ) cost ) ; }
public void Add(int forwardId, int backwardId, int cost){this.costs[backwardId][forwardId] = (short)cost;}
