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; }
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)); } })); }
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) } }; })); }
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; }
public IEnumerable <EdgeContainer> GetAllOutgoingEdges( PropertyHyperGraphFilter.OutgoingEdgeFilter myFilter) { return(_Vertex.GetAllOutgoingEdges(myFilter)); }
public IEnumerable <Tuple <long, IEdge> > GetAllOutgoingEdges( PropertyHyperGraphFilter.OutgoingEdgeFilter myFilter) { return(_Vertex.GetAllOutgoingEdges(myFilter)); }