Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
63c7da9
added CKWL2019
janmenjayap Jun 28, 2024
2aca7a1
added LM2024
janmenjayap Jun 28, 2024
c2162c8
added NT2007
janmenjayap Jun 29, 2024
f3cae1a
initialized the generators
janmenjayap Jul 1, 2024
1f4700a
removed BicornGraph() & KohTindellDiGraph()
janmenjayap Jul 30, 2024
73f28b4
added Koh-Tindell digraph
janmenjayap Aug 2, 2024
0f3d363
added Lov1983
janmenjayap Aug 3, 2024
22a7c98
added KM2015
janmenjayap Aug 3, 2024
d411e05
added TricornGraph()
janmenjayap Aug 3, 2024
a3f76b9
added CLM2006
janmenjayap Aug 4, 2024
678f03d
added MurtyGraph()
janmenjayap Aug 4, 2024
24c94a1
added RST2019
janmenjayap Aug 7, 2024
0cc1ee8
added FiLi2001
janmenjayap Aug 7, 2024
db33729
added CHNP2020
janmenjayap Aug 7, 2024
7fff8db
added CubeplexGraph()
janmenjayap Aug 7, 2024
f1eb832
added TwinplexGraph()
janmenjayap Aug 7, 2024
5076109
Merge branch 'develop' into SmallGraphs
janmenjayap Aug 7, 2024
906e670
updated the indentation
janmenjayap Aug 7, 2024
bc793e4
Merge branch 'SmallGraphs' of https://github.com/janmenjayap/sage int…
janmenjayap Aug 7, 2024
a55d3b9
changed TEST to TESTS
janmenjayap Aug 7, 2024
3b2fac9
removed an extra blank line
janmenjayap Aug 7, 2024
d24a3b0
corrected the ValueError message
janmenjayap Aug 7, 2024
0a89c36
updated the documentation and code style
janmenjayap Aug 10, 2024
a382a50
updated the documentation
janmenjayap Aug 10, 2024
aaaffe1
Merge branch 'develop' into SmallGraphs
janmenjayap Aug 11, 2024
954a44e
updated the documentation
janmenjayap Aug 11, 2024
a24d2e9
Merge branch 'SmallGraphs' of https://github.com/janmenjayap/sage int…
janmenjayap Aug 11, 2024
1897136
Merge branch 'develop' into SmallGraphs
janmenjayap Sep 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/doc/en/reference/references/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1704,6 +1704,11 @@ REFERENCES:
.. [CLG1997] Frank Celler and C. R. Leedham-Green,
*Calculating the Order of an Invertible Matrix*, 1997

.. [CLM2006] Marcelo H. de Carvalho, Cláudio L. Lucchesi and U.S.R. Murty,
*How to build a brick*, Discrete Mathematics, Volume 306,
Issues 19--20, Pages 2383--2410,ISSN 0012--365X, (2006),
:doi:`10.1016/j.disc.2005.12.032`.

.. [CLRS2001] Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest
and Clifford Stein, *Section 22.4: Topological sort*,
Introduction to Algorithms (2nd ed.), MIT Press and
Expand Down
81 changes: 80 additions & 1 deletion src/sage/graphs/generators/smallgraphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3828,8 +3828,87 @@ def MoserSpindle():
def MurtyGraph():
r"""
Return the Murty graph.

Consider the complete bipartite graph `K_{3, 3}`. There is a set of three
black vertices and a set of three white vertices. Now, consider splicing
the complete graph `K_4` with one of the black vertices, this generates the
graph `K_4 \odot K_{3, 3}`. The Murty graph is obtained from
`K_4 \odot K_{3, 3}` with the addition of an edge joining the remaining two
black vertices. The Murty graph is free of conformal bicycles; in
other words, the Murty graph is an example of a graph that is Birkhoff-von
Neumann as well as PM-compact.

This is the smallest brick that is Birkhoff-von Neumann, aka a solid
brick, but is not odd-intercyclic. It is in this context that
Prof. U.S.R. Murty first stumbled upon this graph, and it also appears in
the work of Carvalho, Lucchesi, and Murty [CLM2006]_.

PLOTTING:

Upon construction, the position dictionary is filled to override
the spring-layout algorithm. By convention, the Murty graph is
displayed as mentioned in the paper [CKWL2019]_, with the first two
(noncubic) vertices on the top row, the second three vertices (that form a
stable set) in the middle row, and the remaining three vertices (that form
a triangle) at the bottom.

OUTPUT:

- ``G`` -- the Murty graph

EXAMPLES:

Construct and show the Murty graph::

sage: g = graphs.MurtyGraph()
sage: g.name()
'Murty Graph'
sage: g.order()
8
sage: g.size()
13
sage: g.girth()
3
sage: g.diameter()
2
sage: g.is_hamiltonian()
True
sage: g.show() # long time # needs sage.plot

REFERENCES:

- [CKWL2019]_
- [CLM2006]_
- [LM2024]_

AUTHORS:

- Janmenjaya Panda (2024-08-03)
"""
raise NotImplementedError()
pos_dict = {
0: (-0.5, sqrt(3)/2),
1: (0.5, sqrt(3)/2),
2: (-1, 0),
3: (0, 0),
4: (1, 0),
5: (-0.5, -1 - sqrt(3)/2),
6: (0, -1),
7: (0.5, -1 - sqrt(3)/2)
}

G = Graph(8, pos=pos_dict, name="Murty Graph")

G.add_edge(0, 1)
for v in range(2, 5):
G.add_edges([
(0, v), (1, v), (v, v+3)
])

G.add_edges([
(5, 6), (5, 7), (6, 7)
])

return G


def NauruGraph(embedding=2):
Expand Down