pub fn link( artifacts: &mut Vec<ArtifactDoc>, warnings: &mut Vec<WarningDoc>, ) -> Result<Vec<EdgeDoc>>