Fixed: errors in graph generation for edges referring to missing nodes