updated constructor for BinGraphNode