add serialization for adjacency mapping