private FileVertex GetOrAddTargetById(string rid) { var target = _graph.Vertices.FirstOrDefault(v => v.Id == rid); if (target == null) { target = new FileVertex { Id = rid }; _graph.AddVertex(target); } return(target); }
private FileVertex GetOrAddTargetById(string rid) { var target = _graph.Vertices.FirstOrDefault(v => v.Id == rid); if (target == null) { target = new FileVertex { Id = rid }; _graph.AddVertex(target); } return target; }