public void SetUp()
 {
     this.dataSource = new NullableAndNonNullableRelationDataSet();
     this.graph = DataGraph.Create(dataSource);
     this.edgePredictate = new DataTableSortAlgorithm.NonNullableDataRelationEdgePredicate();
     this.fgraph = new FilteredEdgeListGraph(this.graph,
         this.edgePredictate
         );
 }
		/// <summary>
		/// Construct a graph that filters edges and vertices
		/// </summary>
		/// <param name="g">graph to filter</param>
		/// <param name="edgePredicate">edge predicate</param>
		/// <param name="vertexPredicate"></param>
		/// <exception cref="ArgumentNullException">
		/// g or edgePredicate is null
		/// </exception>
		public FilteredVertexAndEdgeListGraph(
			IVertexAndEdgeListGraph g,
			IEdgePredicate edgePredicate,
			IVertexPredicate vertexPredicate
			)
			: base(g,edgePredicate,vertexPredicate)
		{
			this.filteredEdgeList = new FilteredEdgeListGraph(g,edgePredicate);
		}
Пример #3
0
 /// <summary>
 /// Construct a graph that filters edges and vertices
 /// </summary>
 /// <param name="g">graph to filter</param>
 /// <param name="edgePredicate">edge predicate</param>
 /// <param name="vertexPredicate"></param>
 /// <exception cref="ArgumentNullException">
 /// g or edgePredicate is null
 /// </exception>
 public FilteredVertexAndEdgeListGraph(
     IVertexAndEdgeListGraph g,
     IEdgePredicate edgePredicate,
     IVertexPredicate vertexPredicate
     )
     : base(g, edgePredicate, vertexPredicate)
 {
     this.filteredEdgeList = new FilteredEdgeListGraph(g, edgePredicate);
 }