Exemplo n.º 1
0
 public IEnumerable <HyperEdgeContainer> GetAllOutgoingHyperEdges(PropertyHyperGraphFilter.OutgoingHyperEdgeFilter myFilter = null)
 {
     return(_ServiceToken.VertexService.GetAllOutgoingHyperEdges(_ServiceToken.SecurityToken, _ServiceToken.TransactionToken, new ServiceVertexInstance(this))
            .Select(x => new HyperEdgeContainer {
         PropertyID = x.EdgePropertyID.Value, Edge = new RemoteHyperEdge(x, _ServiceToken)
     }));
 }
Exemplo n.º 2
0
        public IEnumerable <HyperEdgeContainer> GetAllOutgoingHyperEdges(
            PropertyHyperGraphFilter.OutgoingHyperEdgeFilter myFilter = null)
        {
            if (OutgoingEdges != null)
            {
                foreach (var aEdge in OutgoingEdges)
                {
                    var interestingEdge = aEdge.Value as IHyperEdge;

                    if (interestingEdge == null)
                    {
                        continue;
                    }

                    if (myFilter != null)
                    {
                        if (myFilter(aEdge.Key, interestingEdge))
                        {
                            yield return(new HyperEdgeContainer {
                                PropertyID = aEdge.Key, Edge = interestingEdge
                            });
                        }
                    }
                    else
                    {
                        yield return(new HyperEdgeContainer {
                            PropertyID = aEdge.Key, Edge = interestingEdge
                        });
                    }
                }
            }

            yield break;
        }
Exemplo n.º 3
0
 public IEnumerable <HyperEdgeContainer> GetAllOutgoingHyperEdges(
     PropertyHyperGraphFilter.OutgoingHyperEdgeFilter myFilter)
 {
     return(_Vertex.GetAllOutgoingHyperEdges(myFilter));
 }
Exemplo n.º 4
0
 public IEnumerable <Tuple <long, IHyperEdge> > GetAllOutgoingHyperEdges(PropertyHyperGraphFilter.OutgoingHyperEdgeFilter myFilter = null)
 {
     return(_ServiceToken.VertexService.GetAllOutgoingHyperEdges(_ServiceToken.SecurityToken, _ServiceToken.TransactionToken, new ServiceVertexInstance(this))
            .Select(x => new Tuple <long, IHyperEdge>(x.EdgePropertyID.Value, new RemoteHyperEdge(x, _ServiceToken))));
 }
Exemplo n.º 5
0
 public IEnumerable <Tuple <long, IHyperEdge> > GetAllOutgoingHyperEdges(
     PropertyHyperGraphFilter.OutgoingHyperEdgeFilter myFilter)
 {
     return(_Vertex.GetAllOutgoingHyperEdges(myFilter));
 }