Representations of valued graphs