Ejemplo n.º 1
0
        public IEnumerable <EdgeContainer> GetAllOutgoingEdges(PropertyHyperGraphFilter.OutgoingEdgeFilter myFilter = null)
        {
            if (OutgoingEdges != null)
            {
                foreach (var aEdge in OutgoingEdges)
                {
                    if (myFilter != null)
                    {
                        if (myFilter(aEdge.Key, aEdge.Value))
                        {
                            yield return(new EdgeContainer {
                                PropertyID = aEdge.Key, Edge = aEdge.Value
                            });
                        }
                    }
                    else
                    {
                        yield return(new EdgeContainer {
                            PropertyID = aEdge.Key, Edge = aEdge.Value
                        });
                    }
                }
            }

            yield break;
        }
Ejemplo n.º 2
0
 public IEnumerable <Tuple <long, IEdge> > GetAllOutgoingEdges(PropertyHyperGraphFilter.OutgoingEdgeFilter myFilter = null)
 {
     return(_ServiceToken.VertexService.GetAllOutgoingEdges(_ServiceToken.SecurityToken, _ServiceToken.TransactionToken, new ServiceVertexInstance(this))
            .Select(x =>
     {
         if (x is ServiceSingleEdgeInstance)
         {
             return new Tuple <long, IEdge>(x.EdgePropertyID.Value, new RemoteSingleEdge((ServiceSingleEdgeInstance)x, _ServiceToken));
         }
         else
         {
             return new Tuple <long, IEdge>(x.EdgePropertyID.Value, new RemoteHyperEdge((ServiceHyperEdgeInstance)x, _ServiceToken));
         }
     }));
 }
Ejemplo n.º 3
0
 public IEnumerable <EdgeContainer> GetAllOutgoingEdges(PropertyHyperGraphFilter.OutgoingEdgeFilter myFilter = null)
 {
     return(_ServiceToken.VertexService.GetAllOutgoingEdges(_ServiceToken.SecurityToken, _ServiceToken.TransactionToken, new ServiceVertexInstance(this))
            .Select(x =>
     {
         if (x is ServiceSingleEdgeInstance)
         {
             return new EdgeContainer {
                 PropertyID = x.EdgePropertyID.Value, Edge = new RemoteSingleEdge((ServiceSingleEdgeInstance)x, _ServiceToken)
             }
         }
         ;
         else
         {
             return new EdgeContainer {
                 PropertyID = x.EdgePropertyID.Value, Edge = new RemoteHyperEdge((ServiceHyperEdgeInstance)x, _ServiceToken)
             }
         };
     }));
 }
Ejemplo n.º 4
0
        public IEnumerable <Tuple <long, IEdge> > GetAllOutgoingEdges(PropertyHyperGraphFilter.OutgoingEdgeFilter myFilter = null)
        {
            if (OutgoingEdges != null)
            {
                foreach (var aEdge in OutgoingEdges)
                {
                    if (myFilter != null)
                    {
                        if (myFilter(aEdge.Key, aEdge.Value))
                        {
                            yield return(new Tuple <long, IEdge>(aEdge.Key, aEdge.Value));
                        }
                    }
                    else
                    {
                        yield return(new Tuple <long, IEdge>(aEdge.Key, aEdge.Value));
                    }
                }
            }

            yield break;
        }
Ejemplo n.º 5
0
 public IEnumerable <EdgeContainer> GetAllOutgoingEdges(
     PropertyHyperGraphFilter.OutgoingEdgeFilter myFilter)
 {
     return(_Vertex.GetAllOutgoingEdges(myFilter));
 }
Ejemplo n.º 6
0
 public IEnumerable <Tuple <long, IEdge> > GetAllOutgoingEdges(
     PropertyHyperGraphFilter.OutgoingEdgeFilter myFilter)
 {
     return(_Vertex.GetAllOutgoingEdges(myFilter));
 }