Graph serialization with rich metric values