Due to the erros in OSM map(missing some minor roads), the map matching algorithm will fail in those cases. Can I add some nodes and edges to the Graph data struture to represent those missing edges?

If it can, how can I guarantee the connection with other edges? Thank you very much!