Opened 16 years ago
Closed 16 years ago
#114 closed enhancement (fixed)
Revise the documentation of kruskal()
Reported by: | Peter Kovacs | Owned by: | Alpar Juttner |
---|---|---|---|
Priority: | major | Milestone: | LEMON 1.0 release |
Component: | documentation | Version: | hg main |
Keywords: | Cc: | ||
Revision id: |
Description
The attached patch file contains doc improvements for kruskal()
, but there are two more things that should be revised.
- If the input graph is not connected (or the input digraph is not weakly connected), a spanning forest is calculated instead of a spanning tree. Am I right? I think, there should be a
\note
in the doc about this important case. - The
\warning
seems to be meaningless. Perhaps a word is missing after "If Kruskal runs on an".
Attachments (2)
Change History (13)
Changed 16 years ago by
Attachment: | kruskal_doc_0c7c4dfacc8f.patch added |
---|
comment:1 follow-up: 2 Changed 16 years ago by
comment:2 follow-up: 5 Changed 16 years ago by
Replying to alpar:
Or even the whole warning should be rephrased, because reading this warning, I'm pretty much confused what I'm warned about.
As I understand this warning should be only about using Edge for Graph types and Arc for Digraph types. However it seems to be clear in the current doc. What about removing thew warning?
comment:3 follow-up: 4 Changed 16 years ago by
The attached patch is now in the main branch, but with different hash id: [74cd0c58b348]. Could you tell me why?
comment:4 Changed 16 years ago by
Replying to kpeter:
The attached patch is now in the main branch, but with different hash id: [74cd0c58b348]. Could you tell me why?
Use 'hg diff' and you will see. (You wanted to change something (well, something unimportant) in your patch, but you made a mistake when you did it. I fix that in [74cd0c58b348]. Of course, I should have put a note here. I'm sorry)
comment:5 follow-up: 7 Changed 16 years ago by
As I understand this warning should be only about using Edge for Graph types and Arc for Digraph types.
Probably you mean EdgeMap}} and {{{ArcMap
.
However it seems to be clear in the current doc. What about removing thew warning?
OK from my side.
comment:6 Changed 16 years ago by
Replying to alpar:
Use 'hg diff' and you will see. (You wanted to change something (well, something unimportant) in your patch, but you made a mistake when you did it. I fix that in [74cd0c58b348]. Of course, I should have put a note here. I'm sorry)
I see now. It's okay, thank you. I just missed your usual comment: "[...] went to the main branch".
comment:7 follow-up: 9 Changed 16 years ago by
Replying to alpar:
As I understand this warning should be only about using Edge for Graph types and Arc for Digraph types.
Probably you mean
EdgeMap
andArcMap
.
Yes, or an iteraror of an STL container with Edge
/Arc
as its value_type
.
comment:8 Changed 16 years ago by
Component: | core → documentation |
---|
comment:9 follow-up: 10 Changed 16 years ago by
Peter, could you do the missing changes?
Thanks in advance.
Changed 16 years ago by
Attachment: | kruskal_doc_6d7bfcf5b48e.patch added |
---|
comment:10 follow-up: 11 Changed 16 years ago by
comment:11 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Replying to kpeter:
Replying to alpar:
Peter, could you do the missing changes?
See [6d7bfcf5b48e].
Thanks.
Replying to kpeter:
Yes, there should be.
Or more words. Or even the whole warning should be rephrased, because reading this warning, I'm pretty much confused what I'm warned about. For example, what does "Arc type" mean.
I was digging in the svn history and found that this comment is due to deba, -r3261. At that time "Arc type" was "Edge type" which is a bit better, but still confusing. Before that version, there was another
\warning
in the code saying:It may help fixing this warning.