Add weights to node adjacencies for graph array

Also explicitly declared class methods as pub/priv