Generalized definition of bipartite graphs with explicit partitions #1339
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
In
fsgraphTheory
(under "examples/generic_graphs") the existing definition of "partite" graphs asserts the existence of partitions without explicitly putting them as parameters (NOTE: the existing definition makes sense, because the partitions are not unique, even w.r.t{A; B} = {B; A}
. e.g. an isolated vertex can belong to any partition.)But sometimes this definition is not enough. There are theorems explicitly talking about properties of partitions in the statements (e.g. "G contains a matching of A if and only if ...", where
A
is one partition of the bipartite graph G, among A and B but chosen arbitrarily).For this purpose, I added the following "gen_bipartite" concept, which has the partitions explicitly as part of the parameters:
And there's also one alternative definition (just like
bipartite_def
vs.bipartite_alt
):P. S. The code changes are backward compatible to existing user code (i.e. all existing theorems and definitions are still there with the same statements as before.)
Chun