Example #1
0
        public override IReferenceEdge GetNewInstance(IEnumerable<ObjectUUID> iEnumerable, TypeUUID typeOfObjects)
        {
            var retEdge = new EdgeTypeWeighted();

            foreach (var uuid in iEnumerable)
            {
                var vals = weightedSet.Get(new Reference(uuid, typeOfObjects)); ;
                retEdge.Add(vals.Key, vals.Value);
            }

            CalcEstimatedSize(retEdge);

            return retEdge;
        }
Example #2
0
        public override IReferenceEdge GetNewInstance(IEnumerable<Exceptional<DBObjectStream>> iEnumerable)
        {
            var retEdge = new EdgeTypeWeighted();

            foreach (var dbo in iEnumerable)
            {
                var vals = weightedSet.Get(new Reference(dbo.Value.ObjectUUID, dbo.Value.TypeUUID, dbo));
                retEdge.Add(vals.Key, vals.Value);
            }

            CalcEstimatedSize(retEdge);

            return retEdge;
        }