// Get the verticies.
V source = idToVertexMap.get(emd.getSource());
V target = idToVertexMap.get(emd.getTarget());
if (source == null || target == null) {
throw new GraphIOException(
"edge references undefined source or target vertex. "
+ "Source: " + emd.getSource()
+ ", Target: " + emd.getTarget());
}