Ticket #9375 (closed enhancement: fixed)
more documentation & doctests for BalancedTree, BarbellGraph, BubbleSortGraph, BullGraph, ChvatalGraph
| Reported by: | mvngu | Owned by: | jason, ncohen, rlm |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.5.2 |
| Component: | graph theory | Keywords: | |
| Cc: | Work issues: | ||
| Report Upstream: | N/A | Reviewers: | Nathann Cohen |
| Authors: | Minh Van Nguyen | Merged in: | sage-4.5.2.alpha0 |
| Dependencies: | Stopgaps: |
Description
As the subject says.
Prerequisite: #9373
Attachments
Change History
comment:1 Changed 3 years ago by mvngu
- Status changed from new to needs_review
- Authors set to Minh Van Nguyen
comment:2 follow-up: ↓ 3 Changed 3 years ago by ncohen
Excellent ! You can set this one to "positive review" immediately after #9375 :-)
One unimportant detail, though... You used subgraph_search in your doctests, the follwing way :
sage: s_K = g.subgraph_search(K_n1, induced=True) sage: s_P = g.subgraph_search(P_n2, induced=True) sage: K_n1.is_isomorphic(s_K)
Well, subgraph_search should of course *always* return subgraphs isomorphic to S_k. Actually, the order of the vertices should even be the same, but when it finds nothing, it returns a None, which is_isomorphic may not like... It's not really a problem in this case, as this would report a doctest failure anyway :-)
Nathann
Note: See
TracTickets for help on using
tickets.

