Locally-scalar representations of graphs in the category of Hilbert spaces