How to plot a signal (function) on a graph (object of graph theory)

Given a graph of n vertices, it is possible in mathematica to plot a discrete signal (or function) of n samples on the vertices of the graph, so that one can visualize the features of the signal on the graph (see the attached image) ?