You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// we need a graph and two sets of verticesIMutableVertexAndEdgeListGraph<TVertex,TEdge>graph= ...;// sets a and b must be distinct, and their union must be equal to the set of all vertices in the graphIEnumerable<TVertex>vertexSetA= ...;IEnumerable<TVertex>vertexSetB= ...;// These functions used to create new vertices and edges during the execution of the algorithm. // All added objects are removed before the computation returnsVertexFactory<TVertex>vertexFactory=<some method which creates a newTVertex>;EdgeFactory<TVertex,TEdge>edgeFactory=(source,target)=>newEdge<TVertex>(source,target);// computing the maximum bipartite matchvarmaxMatch=newMaximumBipartiteMatchingAlgorithm<TVertex,TEdge>(graph,vertexSetA,vertexSetB,vertexFactory,edgeFactory);// Use the MatchedEdges property to access the computed maximum matchProcessResult(maxMatch.MatchedEdges);