/// <summary> /// Create an adjacency filtered graph /// </summary> /// <param name="g">graph to filter</param> /// <param name="vp">vertex predicate</param> public FilteredAdjacencyGraph( IAdjacencyGraph g, IVertexPredicate vp ) { if (g==null) throw new ArgumentNullException("g is null"); m_AdjacencyGraph = g; VertexPredicate = vp; }
/// <summary> /// Create an adjacency filtered graph /// </summary> /// <param name="g">graph to filter</param> /// <param name="vp">vertex predicate</param> public FilteredAdjacencyGraph( IAdjacencyGraph g, IVertexPredicate vp ) { if (g == null) { throw new ArgumentNullException("g is null"); } m_AdjacencyGraph = g; VertexPredicate = vp; }