Skip to content

Commit

Permalink
Rename Combinatorica files
Browse files Browse the repository at this point in the history
Package names should not have "." in them. so V0.6.m is now V06.m
Seconds combinatorica v09.m is v.91.m since some code has changed.
  • Loading branch information
rocky committed Dec 27, 2024
1 parent ee5d7c0 commit d59676c
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 8 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
(* :Mathematica Version: 2.3, Mathics3 version 7.0.0
*)

BeginPackage["DiscreteMath`CombinatoricaV0.91`"]
BeginPackage["DiscreteMath`CombinatoricaV091`"]

Graph::usage = "Graph[g,v] is the header for a graph object where g is an adjacency matrix and v is a list of vertices."

Expand Down
File renamed without changes.
24 changes: 19 additions & 5 deletions Combinatorica/Kernel/init.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
(* -*- wolfram -*- *)
(* DiscreteMath`CombinatoricaV0.9 goes with:
Get[ "Combinatorica`CombinatoricaV06" ]

(* DiscreteMath`CombinatoricaV091 goes with:
Implementing Discrete Mathematics: Combinatorics and Graph Theory
with Mathematica
Expand All @@ -9,7 +11,19 @@
by Steven S. Skiena, Addison-Wesley Publishing Co., Advanced Book Program,
350 Bridge Parkway, Redwood City CA 94065. ISBN 0-201-50943-1.
For ordering information, call 1-800-447-2226.
*)
Get[ "Combinatorica`CombinatoricaV0.6" ]
Get[ "Combinatorica`CombinatoricaV0.9" ]
Get[ "Combinatorica`CombinatoricaV2.0.0" ]
*)
Get[ "Combinatorica`CombinatoricaV09" ]

(* DiscreteMath`CombinatoricaV200 goes with:
the programs from the book:
"Computational
Discrete Mathematics: Combinatorics and Graph Theory in Mathematica",
by Sriram V. Pemmaraju and Steven S. Skiena, Cambridge University Press,
2003.
The programs from the book are also available at www.combinatorica.com.
*)

Get[ "Combinatorica`CombinatoricaV200" ]
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
_initialized: bool = False

combinatorica_file = osp.normpath(
osp.join(osp.dirname(__file__), "..", "Combinatorica", "CombinatoricaV0.9.m")
osp.join(osp.dirname(__file__),
"..",
"Combinatorica",
"CombinatoricaV091.m")
)


Expand Down
2 changes: 1 addition & 1 deletion test/test_combinatorica_v20.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
combinatorica_file = osp.normpath(
osp.join(osp.dirname(__file__),
"..", "Combinatorica",
"CombinatoricaV2.0.0.m")
"CombinatoricaV200.m")
)


Expand Down

0 comments on commit d59676c

Please sign in to comment.